#10680 closed bug (notabug)
Incorrect size when width option set in %
Reported by: | peto | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | none |
Component: | ui.selectmenu | Version: | 1.11.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
When selectmenu is initialized with width option set in %, for example 100%, the resulting size is incorrect (a bit smaller than it should be).
$('#test').selectmenu({ "width": '100%' });
Fiddle: http://jsfiddle.net/rad2dg7w/
Change History (3)
comment:1 Changed 8 years ago by
Resolution: | → notabug |
---|---|
Status: | new → closed |
comment:2 Changed 8 years ago by
but it would be nice to have this option to use relative sizes. can you make it a feature request?
comment:3 Changed 8 years ago by
Well, the problem you're encountering won't be fixed with official support anyway. The problem is that .outerWidth( "100%" )
can't account for the 1px border. Do you have a suggestion for how to make this work the way you expect?
Note: See
TracTickets for help on using
tickets.
As the documentation says, the
width
option accepts a number, not a string.