Skip to content

Make width option work after init #344

Open

Description

@leizhao4

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.

Activity

  1. fnagel commented on Sep 27, 2014

    @fnagel
    Owner

    Please provide a demo fiddle, see #61

  2. leizhao4 commented on Sep 29, 2014

    @leizhao4
    Author

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

  3. fnagel commented on Sep 29, 2014

    @fnagel
    Owner

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

  4. leizhao4 commented on Sep 29, 2014

    @leizhao4
    Author

    Okay, thanks!

  5. fnagel commented on Sep 30, 2014

    @fnagel
    Owner

    So this issue could be closed?

  6. leizhao4 commented on Sep 30, 2014

    @leizhao4
    Author

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

  7. fnagel commented on Sep 30, 2014

    @fnagel
    Owner

    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.

  8. changed the title [-]How to resize a select menu widget?[/-] [+]Make width option work after init[/+] on Sep 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions