fnagel/jquery-ui — Issue #183: Several mis-calculations with automatic width
Author: thg2k
Created: 2011-10-20 13:50:18+00:00
State: open

Please see the following test case:
http://thgnet.it/stuff/data/selectmenu-bug-autowidths.html

It highlights the following problems:

1) When options are all the same length, the width is calculated in the wrong way. I worked around it by adding a fixed 10 px (which is enough in my layout) to o.width when it is calculated from .width(), but of course it's a hack and we should study a proper solution.

2) Not sure how this one is calculated, but i'm sure that the inside "pre-calculated" should stay in the same line..at least that one! Don't you think anyway that choosing longest option would be better? I think the builtin combo box does exactly this.

3) Well, here the problem is quite evident..i think this bug was introduced with the wrapper change, because in my website it works in this case, but i got rid of the wrapper element!

I think these are showstoppers for 1.2 release, the 1) and 2) actually existed for a long time, that's why i worked around them in my production website, but the third one is kind of new.