Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make width option work after init #344

Open
leizhao4 opened this issue Sep 26, 2014 · 7 comments
Open

Make width option work after init #344

leizhao4 opened this issue Sep 26, 2014 · 7 comments
Labels

Comments

@leizhao4
Copy link

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 fnagel added the bug label Sep 27, 2014
@fnagel
Copy link
Owner

fnagel commented Sep 27, 2014

Please provide a demo fiddle, see #61

@leizhao4
Copy link
Author

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

@fnagel
Copy link
Owner

fnagel commented Sep 29, 2014

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

@leizhao4
Copy link
Author

Okay, thanks!

@fnagel
Copy link
Owner

fnagel commented Sep 30, 2014

So this issue could be closed?

@fnagel fnagel added question and removed bug labels Sep 30, 2014
@leizhao4
Copy link
Author

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

@fnagel
Copy link
Owner

fnagel commented Sep 30, 2014

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.

@fnagel fnagel changed the title How to resize a select menu widget? Make width option work after init Sep 30, 2014
@fnagel fnagel added feature and removed feedback labels Sep 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants