Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Highlighted
Developer
Posts: 281
Registered: ‎05-31-2012
My Device: Playbook
My Carrier: o2
Accepted Solution

I can not determine why my bbui 0.9.4 app is still scrolling

Hi, I have a problem with bbui for a quite long time and it is still not solved.

 

this is the reason why i create a new thread to discribe the problem and post my whole code.

 

the problem:

i have a very simple bbui app with just a button. but when i start the app i can e.g. click on the button and swipe it down and up. so the screen moves, but i dont want the screen to move. its like the button is in a list and i can move the elements up and down.

 

here is my code:

Index.htm

<html> 
	<head>
		<link  rel="stylesheet" type="text/css" href="bbui-0.9.4.css"><link />
		<script type="text/javascript" src="bbui-0.9.4.js"></script>
		<script type="text/javascript" src="js/webworks-1.0.2.9.js"></script>
		<script type="text/javascript">
			document.addEventListener('webworksready', function(e) {
				bb.init();
				bb.pushScreen('menu.htm', 'menu');
			}, false);
		</script>
	</head>
	<body>
	</body>
</html>

 menu.htm

<div data-bb-type="screen" data-bb-effect="fade">
	<div data-bb-type="button">hello</div>
</div>
	

 config.xml

<?xml version="1.0" encoding="utf-8"?>

<widget xmlns:rim="http://www.blackberry.com/ns/widgets" id="bbUISamples" version="1.0.0.1" rim:header="RIM-Widget:rim/widget" xmlns="http://www.w3.org/ns/widgets">
  <rim:navigation mode="focus" />
  <name>bbui test</name>
  <description>An example of how to use different BlackBerry UI layouts and controls</description>
  <author href="https://github.com/tneil">Tim Neil</author>
  <icon src="images\icon.png" />
  <icon src="images\icon.png" rim:hover="true" />
  <rim:splash src="images\bb10-splash-landscape.png" />
  <rim:splash src="images\bb10-splash-portrait.png" />
  <rim:loadingScreen backgroundImage="images\background.png" foregroundImage="images\hippo.png" onFirstLaunch="true">
    <rim:transitionEffect type="fadeIn" />
  </rim:loadingScreen>
  <content src="index.htm" />

</widget>

 

Plase "+Like" my post if it was helpful.
Developer
Posts: 135
Registered: ‎09-25-2012
My Device: Dev Alpha
My Carrier: Rogers

Re: I can not determine why my bbui 0.9.4 app is still scrolling

Hi,

 

Have you tried for menu.htm

 

<div data-bb-type="screen" data-bb-effect="fade" data-bb-scroll-effect="off">

</div>

 This should do it.

Developer
Posts: 281
Registered: ‎05-31-2012
My Device: Playbook
My Carrier: o2

Re: I can not determine why my bbui 0.9.4 app is still scrolling

you made my day Smiley Happy
Plase "+Like" my post if it was helpful.