#14825 closed bug (notabug)
selectmenu in dialogs / button sizing not working properly using relative width
Reported by: | Patrick | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | none |
Component: | ui.selectmenu | Version: | 1.11.4 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Hi all,
http://jsfiddle.net/r3z2fn0g/1/
The selectmenu size in dialogs gets rendered in pixels, not in %.
See JsFiddle example defines 70% width, but the selectmenu-button gets rendered in 70px. Removing the width definition from css complete, the button collapses to 0px. (see also comments in css area of JsFiddle)
kind regards Patrick
Change History (2)
comment:1 Changed 7 years ago by
Resolution: | → notabug |
---|---|
Status: | new → closed |
comment:2 Changed 7 years ago by
Hi, yes, a logical explanation... but I must say, it worked before. :-(
Possibly something changed in the past. As I can see in the commit history a _buttonResize method came in for the selectmenu.
I will try todo a refresh for my dialogs here... but I'm not sure for now, if I can accept this issue closed.
Patrick
If you initialize a selectmenu while it's hidden, we can't determine what size it should be. You need to either initialize the selectmenu while it's visible, or refresh it once it becomes visible. See http://jsfiddle.net/4hmco5yv/