Skip to main content

Search and Top Navigation

#10680 closed bug (notabug)

Opened November 01, 2014 10:51PM UTC

Closed November 02, 2014 12:49AM UTC

Last modified November 03, 2014 03:22PM UTC

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%'


Attachments (0)
Change History (3)

Changed November 02, 2014 12:49AM UTC by scottgonzalez comment:1

resolution: → notabug
status: newclosed

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

Changed November 02, 2014 01:09PM UTC by peto comment:2

but it would be nice to have this option to use relative sizes. can you make it a feature request?

Changed November 03, 2014 03:22PM UTC by scottgonzalez comment:3

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?