fnagel / jquery-ui

A fork of jQuery UI: WIP branches, legacy Selectmenu Widget (branch: selectmenu) and an accessible version of jQuery UI Tabs (outdated, branch: tabs accessability)
Other
588 stars 141 forks source link

Make width option work after init #344

Open leizhao4 opened 9 years ago

leizhao4 commented 9 years ago

Is there a way to resize (change width of) a select menu widget, without destroying and recreating it?

I have a select menu in a container. The menu must dynamically resize itself when the container resizes.

I tried

mySelect.selectmenu("option", { width: container.width() });

but it didn't work. Then I tried

mySelect.selectmenu({ width: container.width() });

but it only seemed to change the menuWidth, not the widget with.

fnagel commented 9 years ago

Please provide a demo fiddle, see #61

leizhao4 commented 9 years ago

Thank you @fnagel . Please try this fiddle: http://jsfiddle.net/znb03qtg/1/

fnagel commented 9 years ago

Ok, now I see what you want to do. No, thats not possible in this fork but in the official selectmenu.

leizhao4 commented 9 years ago

Okay, thanks!

fnagel commented 9 years ago

So this issue could be closed?

leizhao4 commented 9 years ago

Yes, please. Or keep it as a feature request, if you wish. :-)

fnagel commented 9 years ago

Ok, thanks for the feedback.

I will leave it open but this fork will only get bugfixes as we now have the official selectmenu widget. Paid feature development is still possible.