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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3932
    Vote Rating
    1272
      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
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3932
    Vote Rating
    1272
      0  

    Default

    That would be a browser issue then.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    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
  •