Results 1 to 3 of 3

Thread: Panel.items.reorder not updating the GUI

  1. #1

    Default Panel.items.reorder not updating the GUI

    Whenever I call the reorder function on a Panel's items object, the change happens, but the GUI is not updated.

    Calling doLayout does not update the GUI.

    What should I be calling to make the GUI show the reordered items?

  2. #2

    Default

    The following seems to work, but is it the correct way?

    myPanel.items.reorder({0:1});
    myPanel.update();
    myPanel.doLayout();

  3. #3
    Sencha User
    Join Date
    Jan 2009
    Posts
    10

    Default

    This might be a little late for a reply....

    I ran into same issue as you, and your suggestion to do an update() on parent does work. I did a little more digging and below is observations:

    All layouts except for BoxLayout (and its derived classes hbox and vbox), do not re-render their child components if they are re-arranged among themselves (using items.reorder(map)). All it does is checks if the child's parent el is same as the container's el in isValidParent(). Which would obviously return true, hence the child is not rendered.

    Does that sounds like a bug or is an expected behavior?

Similar Threads

  1. Reorder panel items by Add/Remove
    By lager in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 25 Feb 2010, 9:42 AM
  2. Reorder Accordion items
    By thara in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 8 Dec 2009, 11:09 PM
  3. Reorder Panel using draggable
    By tomalex0 in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 29 Sep 2009, 9:43 PM
  4. Replies: 3
    Last Post: 19 Nov 2008, 8:27 AM
  5. Updating items property of panel
    By ranjeet in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 23 Oct 2008, 11:16 PM

Posting Permissions

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