Results 1 to 2 of 2

Thread: Redraw a dynamically changing select

  1. #1
    Sencha User
    Join Date
    Dec 2011
    Posts
    1

    Question Redraw a dynamically changing select

    I have an app that has a selectfield in a header. I am programatically changing the options of the select based upon a previous user action. I can update the select to have the correct options no problem, but if the new options have a different length than the previous time, the box around the options does not update to the proper size.

    I tried the doLayout method, but I get an error on the line saying
    myselect.doLayout()
    TypeError: Object [object Object] has no method 'doLayout'






    Attached Images Attached Images

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,448

    Default

    You need to get the listPanel which is a floating panel.

    On a phone, do note that the list won't appear like that but will be a picker.
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •