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
Contributor
Posts: 12
Registered: ‎06-04-2013
My Device: Z10
My Carrier: Vodafone

Space reserved for scroll bar

Hi,

 

When i add the following meta tag to my app's html i get space reserved for the scroll bar if the content extends beyond the viewport.

 

It does not even appear to work every time anyway but is this correct behaviour in a webworks app?

 

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

 

Developer
Posts: 1,229
Registered: ‎03-20-2011
My Device: Playbook, Z10 LE, Dev Alpha B, 2x Dev Alpha C
My Carrier: 3, Orange, Vodafone

Re: Space reserved for scroll bar

If you use the overflow CSS tag you can control this stuff

 

e.g. if you never want any scroll just use overflow: none

 

As you don't mention the OS its a bit hard to give you the perfect answer

 

I've see some nice solutions that measure the scrollbar size but they are browser dependent and usually require the odd tweak




Click the like button if you find my posts useful!