Results 1 to 2 of 2

Thread: Adding hidden modal panel to Viewport -> Error: "Item does not exist in the containe"

  1. #1

    Default Adding hidden modal panel to Viewport -> Error: "Item does not exist in the containe"

    I'm getting some errors in my app since i upgraded to 7.0 ("Item does not exist in the container")

    One simple way for me to reproduce this error is by doing the following:

    Code:
    Ext.Viewport.add({
        xtype: 'panel',
        modal: true,
        hidden: true
    });
    What's wrong about that? The combination of modal and hidden produces this error. Maybe when i understand why this code produces an error since 7.0 i can understand the other errors in my app.

    Best regards
    Maurice

  2. #2

    Default

    So far as a workaround i do the following:

    Code:
    Ext.Viewport.add({
    xtype: 'panel', hidden: true, listeners: {
    added: function (component) {
    component.setModal(true);
    }
    }
    });

Posting Permissions

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