Football Fans: Download the 2012 Schedule App from Google Play!


Go Back   Android Forums > Android Discussion > Android Applications

Android Applications All the information you could ever want about Android Applications. Learn about apps and get help with them... all here! New apps can be found and announced in the Applications Announcements forum linked below.



Reply
 
LinkBack Thread Tools
Old December 25th, 2009, 10:29 AM   #1 (permalink)
Junior Member
 
Join Date: Dec 2009
Posts: 20
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default No scroll bar at DIV in Android browser

I just wanted to test how to move on a touchscreen the slider of a scroll bar, but big surprise, there is no scroll bar.

I have defined a DIV with overflow:auto

This means when the content of the DIV is greater than the DIV defined with style width and height, there should be scroll bars added to the DIV.

But at this test page the left menu is larger than the DIV, but no scroll bar is added to the DIV.

When you test it with an Android cell phone, You will have first scroll the screen to the left.

I scroll with

document.body.scrollLeft

to the right, if the screen is smaller than XVGA
this feature works fine in the Andoid browser,

Not only that there is no scroll bar added to the
DIV overflow=auto, this DIV is also not scrollable,
by javascript

Test page where the DIV should be scrolled down

Here my script tries to hold the menu entry from the current page
in the visible area of the DIV by

document.getElementById('dirsub').offsetTop

But the offsetTop does also not work.
Any work around?
Hope for a next browser release?

founder is offline  
Reply With Quote
Sponsors
Old December 26th, 2009, 10:15 AM   #2 (permalink)
Member
 
Join Date: Oct 2009
Posts: 124
 
Device(s): HERO
Thanks: 0
Thanked 9 Times in 6 Posts
Default

I would say that that is just yet another buggy quirk of the stock browser, but the same behavior is also seen when using the Dolphin and Infinity browsers as well, so I'd point the finger at the Webkit rendering engine.

Check this pretty informative page that shows what works and what doesn't in the many flavors of the Webkit engine based on device. Note that the Overflow directive is shown as "incorrect" for Androids.

The Great WebKit Comparison Table

__________________
Sprint Evo +
(haven't decided which rom yet) =
---------------------------------
(most likely) Awesome
mkhopper is offline  
Reply With Quote
Old July 13th, 2010, 12:30 PM   #3 (permalink)
New Member
 
Join Date: Apr 2010
Posts: 7
 
Device(s):
Thanks: 0
Thanked 2 Times in 1 Post
Default

This is reviving an old thread I know, but I can't find much on this elsewhere. Anyone know if 2.2 (froyo) fixes this issue? It's super annoying, I hate it when things work better on the iphone than android (it's pretty rare )
hopsyturvy is offline  
Reply With Quote
Old January 24th, 2011, 02:32 AM   #4 (permalink)
New Member
 
Join Date: Jan 2011
Posts: 1
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

A bit late, but it doesn't work on Froyo either. Lets hope it will be added in the Gingerbread release, or the 3.0.
mewiki is offline  
Reply With Quote
Old September 7th, 2011, 10:20 PM   #5 (permalink)
New Member
 
Join Date: Jan 2011
Posts: 5
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi, are there any workaround for this? so scrollbars will show on android browser?
jcwayne is offline  
Reply With Quote
Reply

Bookmarks

Tags
browser, div, offsettop, overflow auto, scrollable, scrollleft


Go Back   Android Forums > Android Discussion > Android Applications User CP
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cant scroll frame in browser sitlet Android Lounge 9 February 11th, 2012 01:25 AM
Can't scroll down page on browser justsaytim Droid X - Support and Troubleshooting 2 October 29th, 2010 02:09 AM
Flash slowing down browser scroll dixonba Incredible - Support and Troubleshooting 4 September 2nd, 2010 03:14 AM
fixed browser scroll lag gotwillk Motorola Droid 2 January 6th, 2010 08:16 AM
Quick scroll to top in the browser mcsmithnyc HTC Hero (Sprint) 2 November 19th, 2009 02:05 PM



All times are GMT -5. The time now is 11:45 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo