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

Reply
Developer
smartek
Posts: 281
Registered: ‎05-31-2012
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.
Please use plain text.
Developer
DueNorth
Posts: 135
Registered: ‎09-25-2012
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.

Please use plain text.
Developer
smartek
Posts: 281
Registered: ‎05-31-2012
My Carrier: o2

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

you made my day :smileyhappy:
Plase "+Like" my post if it was helpful.
Please use plain text.