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
Posts: 112
Registered: ‎06-22-2013
My Device: blackberry z10
My Carrier: Airtel
Accepted Solution

How to create a scroll box.

 I want to create a scroll box which contain the text. text is scroll within the box and also shows the scroll bar.

 

I used following code, it working fine on IE and Mozila on desktop but not on mobile browser.

 

<div style="width: 50px; height: 50px; overflow: auto; overflow-y: auto; position: absolute">Scrollable Text.....</div>

 

How can i create this.

I am using XHTML..

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: How to create a scroll box.

Get rid of position absolute (why is it there anyway?)

 

This works fine but (current) mobile browsers don't display scrollbars

 

When you think about it scrollbars are for non-touch devices so the user can use a mouse to scroll through more content than can be displayed, with a touch device this is unrequired so they got rid of scrollbars

 

The scroll would be very hard to control anyway on a mobile as your finder is massive compared a mouse pointer

 

If you want them to give the user an idea where they are within a scrolling area then you'd have to create and update them manually




Click the like button if you find my posts useful!