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
Trusted Contributor
zahirw
Posts: 134
Registered: ‎04-15-2012
My Device: Bold 9900
My Carrier: Vodafone

Disable page overscroll/bounce

Pages on my app tend to over-scroll and bounce while scrolling when you reach the bottom of the document. This causes a nasty whitespace bounce/overscroll(ie. if your background is set to FFFFFF in the config.xml file) once the document end is reached

 

Is there a solution to this?

Please use plain text.
Developer
ignites
Posts: 466
Registered: ‎04-11-2012
My Device: Bold 9900
My Carrier: Rogers

Re: Disable page overscroll/bounce

I'd like to know as well. My current solution is to fit everything wthin the 1024 by 600 frame. If it doesnt over scrool it doesnt bounce


Developer for easyDial for BlackBerry Bold & inLink for BlackBerry PlayBook
Find me online via twitter, or on the techfruits.com webpage. Please hit the like button below if what I said helped!
Please use plain text.
New Developer
dalles
Posts: 6
Registered: ‎04-28-2012
My Device: Torch 9800 & PlayBook
My Carrier: Multiple

Re: Disable page overscroll/bounce

[ Edited ]

I use frames as a work around. Not the greatest solution but until we get a RIM solution to disable this I'm happy using this.

 

I created a main HTML page which contains a single row at 100% height and then link to the HTML page I want to display. Only thing that I lose using this method is the scroll bar on the side of the actual device.

 

<html>
  <frameset rows="100%">
    <frame src="otherpage.html" />
  </frameset> 
</html>

 

Hope this is of some help.

Please use plain text.
Trusted Contributor
lcocea
Posts: 117
Registered: ‎02-29-2012
My Device: PlayBook & Nexus 4

Re: Disable page overscroll/bounce

[ Edited ]

What works for me is setting the body height / width to <= 100% and then positioning all visual elements at absolute (x, y) positions. The idea is that page size must not exceed screen size.

Please use plain text.
Developer
ignites
Posts: 466
Registered: ‎04-11-2012
My Device: Bold 9900
My Carrier: Rogers

Re: Disable page overscroll/bounce

frames is not needed.

 

just use a div container and in the stylesheet change the overflow to none and height/width to be 1024 by 600


Developer for easyDial for BlackBerry Bold & inLink for BlackBerry PlayBook
Find me online via twitter, or on the techfruits.com webpage. Please hit the like button below if what I said helped!
Please use plain text.
Trusted Contributor
zahirw
Posts: 134
Registered: ‎04-15-2012
My Device: Bold 9900
My Carrier: Vodafone

Re: Disable page overscroll/bounce

I'm looking for a solution that's more concrete & not makeshift.
Please use plain text.
Trusted Contributor
lcocea
Posts: 117
Registered: ‎02-29-2012
My Device: PlayBook & Nexus 4

Re: Disable page overscroll/bounce

Good luck.

Please use plain text.
Developer
ignites
Posts: 466
Registered: ‎04-11-2012
My Device: Bold 9900
My Carrier: Rogers

Re: Disable page overscroll/bounce

Div containers are pretty concrete... not makeshift solutions. It is also the html5 solution if you google it. If you think otherwise then .. as the previous poster said. good luck.


Developer for easyDial for BlackBerry Bold & inLink for BlackBerry PlayBook
Find me online via twitter, or on the techfruits.com webpage. Please hit the like button below if what I said helped!
Please use plain text.