BASEER HAIDER JAFRI
BASEER HAIDER JAFRI

Reputation: 949

My scrolling is not working in samsung android Mobile but works fine in all browsers and devices?

I am working on an application in which i have div as shown below

HTML:

<div id="commentDiv">

CSS:

#commentDiv {height: 458px; overflow: auto;}

In this div, comments are being populated from service. but the scrolling of div does not work in android though its working fine in all browsers and other devices like iPhone and iPad.

can any body solve this problem please its urgent.

Upvotes: 1

Views: 4610

Answers (1)

Roman
Roman

Reputation: 6428

No you can't. The Android browser does not support scrolling of elements other than body. In other words: overflow: auto isn't supported.

This has been filed as a bug a few years ago and it still isn't fixed.

http://code.google.com/p/android/issues/detail?id=6864&q=scroll%20android%20inner&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars

or

http://code.google.com/p/android/issues/detail?id=2118&q=scroll%20android%20inner&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars

It works in alternative browsers, like Firefox mobile, though.

Upvotes: 3

Related Questions