Results 1 to 5 of 5

Thread: How to reLayout or reFresh the container?

  1. #1
    Sencha User
    Join Date
    Jan 2011
    Posts
    77
    Answers
    1
    Vote Rating
    0
      0  

    Question How to reLayout or reFresh the container?

    I do have situation when I need refresh or re-layout components inside container.
    How to do that?

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,060
    Answers
    3976
    Vote Rating
    1389
      0  

    Default

    When you add or remove an item it will insert/remove the DOM elements and since the layouts are CSS the browser takes care of it all. Therefore you don't need to
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

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

  3. #3
    Sencha User
    Join Date
    Jan 2011
    Posts
    77
    Answers
    1
    Vote Rating
    0
      0  

    Default

    I woul think the same,

    but when I do something like this:

    this.getConnectView().hide();
    this.getDisconnectView().show();

    where Connect and Disconnect views, appears to be that some pieces of the screen are no rendered, I either need to touch the screen or connect to the page via inspector and just look at those elements and everything re renders properly......

  4. #4
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,060
    Answers
    3976
    Vote Rating
    1389
      0  

    Default

    That would be a browser issue then.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

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

  5. #5
    Sencha User
    Join Date
    Jan 2011
    Posts
    77
    Answers
    1
    Vote Rating
    0
      0  

    Default

    Yes, I believe it is,

    Adding:

    document.body.appendChild(document.createTextNode('dude!'));

    Fixing the problem....

Posting Permissions

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