Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

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

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

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

7ec0 opened this issue Sep 23, 2012 · 1 comment
Assignees
Milestone

Comments

@7ec0
Copy link

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
Copy link
Contributor

@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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants