Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#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:


When selectmenu is initialized with width option set in %, for example 100%, the resulting size is incorrect (a bit smaller than it should be).

    "width": '100%'


Change History (3)

comment:1 Changed 8 years ago by Scott González

Resolution: notabug
Status: newclosed

As the documentation says, the width option accepts a number, not a string.

comment:2 Changed 8 years ago by peto

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 Scott González

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.