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

select-element with class ui-btn-left inside header-div has no width #5073

Closed
7ec0 opened this Issue Sep 23, 2012 · 1 comment

Comments

Projects
None yet
2 participants
@7ec0

7ec0 commented Sep 23, 2012

Placing a leftbound (class=ui-btn-left or -right) select element inside a header (div data-role=header) results in the select element being displayed way to narrow to display its text. The following code works with jquerymobile 1.1.1, yet none of the versions of 1.2:

http://jsbin.com/ojanit/edit

@ghost ghost assigned jaspermdegroot Sep 24, 2012

@jaspermdegroot

This comment has been minimized.

Show comment
Hide comment
@jaspermdegroot

jaspermdegroot Sep 24, 2012

Member

@7ec0

Thanks for reporting the issue and including a test page.

The issue is caused by a change in the JS. "Option 1" is now wrapped in a span with class ui-btn-left what is not supposed to happen. Temporary work-around is not adding class ui-btn-left to the select itself but wrap the select in a div with that class.

While looking at your test page I also saw an issue with the position of the select button. The button should not have top and bottom margin. Until we fixed this in master you would have to set the margin to 0 with custom CSS.

Here is your test page including the work-arounds: http://jsbin.com/ojanit/6/edit

Member

jaspermdegroot commented Sep 24, 2012

@7ec0

Thanks for reporting the issue and including a test page.

The issue is caused by a change in the JS. "Option 1" is now wrapped in a span with class ui-btn-left what is not supposed to happen. Temporary work-around is not adding class ui-btn-left to the select itself but wrap the select in a div with that class.

While looking at your test page I also saw an issue with the position of the select button. The button should not have top and bottom margin. Until we fixed this in master you would have to set the margin to 0 with custom CSS.

Here is your test page including the work-arounds: http://jsbin.com/ojanit/6/edit

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