Search and Top Navigation
#14825 closed bug (notabug)
Opened November 19, 2015 01:43PM UTC
Closed November 19, 2015 02:10PM UTC
Last modified November 20, 2015 04:30PM UTC
selectmenu in dialogs / button sizing not working properly using relative width
Reported by: | Patrick1701 | 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
Attachments (0)
Change History (2)
Changed November 19, 2015 02:10PM UTC by comment:1
resolution: | → notabug |
---|---|
status: | new → closed |
Changed November 20, 2015 04:30PM UTC by comment:2
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/