Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ui-bar-x borders causing vertical scrollbars on Android #76

Closed
frequent opened this issue Feb 28, 2012 · 3 comments
Closed

ui-bar-x borders causing vertical scrollbars on Android #76

frequent opened this issue Feb 28, 2012 · 3 comments

Comments

@frequent
Copy link

After switching to Themeroller CSS on my Android HTC, I noticed horizontal scrollbars also appearing on vertical scroll although my page should be exactly screen-width wide.

Please check the JQM docs - http://jquerymobile.com/test/docs/pages/ Firebug the header and you will see the header (ui-bar-f) only having top and bottom borders.

JQM-docs.css has .ui-bar-f like so:

.ui-bar-f {
    border-top: 1px solid   #56A00E;
    border-bottom: 1px solid #56A00E;
    ...

whereas my themeroller themes (but also in the JQM docs) go like this:

.ui-bar-a {
    border: 1px solid       #2A2A2A /*{a-bar-border}*/;
    ...

This gives headers and footers an additional 1px on the left and right, causing horizontal scrollbars to appear on every vertical scroll. If I comment out this line everything is fine.

Not sure what places this class is also used - but if the JQM docs only need top and bottom border it should be ok to switch to this, shouldn't it?

@frequent
Copy link
Author

just saw. I posted this as an issue before :-)

If you want I can send you a screenshot from my Android. Not sure this is helpful though...

@tybenz
Copy link
Contributor

tybenz commented Feb 28, 2012

This issue has finally been fixed. My apologies. The problem was that the custom styles defined by the user in ThemeRoller had to overwrite some of the jQuery Mobile structural styles.

To clarify, however, a single border rule is used in the stylesheet because jQuery Mobile 1.0.1 does it this way. ui-bar-x gets only one border rule (e.g. border: 1px solid #000) and ui-header has a border-right-width: 0 and border-left-width: 0.

@tybenz tybenz closed this as completed Feb 28, 2012
@frequent
Copy link
Author

Yes, you are right. I noticed all my bars missing left and right borders. Thx for the update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants