1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    11
    Vote Rating
    0
    nixta is on a distinguished road

      0  

    Default Unanswered: Resize events on navigation views not at the top of the stack.

    Unanswered: Resize events on navigation views not at the top of the stack.


    Hi,

    I have a navigation view with a main (default) view. This default view is a panel with a custom component in it derived from Ext.Component. The custom component has its resize handler defined.

    If I push a view onto the stack, resize the browser, and then pop that view, I cannot figure out how to ensure my custom component gets a resize event fired so that it looks right when the default view is exposed again.

    While it's shown, the resize event is fired just fine, both before and after the push/pop.

    Any ideas what I might be doing wrong?

    Cheers,

    Nick.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,525
    Vote Rating
    871
    Answers
    3564
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Are you recreating the component when you go to push it for a second time?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Mar 2012
    Posts
    11
    Vote Rating
    0
    nixta is on a distinguished road

      0  

    Default


    Thanks Mitchell. I fear I failed miserably in explaining the problem properly . I don't think my component gets destroyed in the scenario. I'll try again…

    1) I display my component in a panel in a navigation view.
    2) I push something else onto the navigation view stack.
    3) I resize the browser/rotate the device.
    4) I pop the navigation view stack (revealing my component from step 1 again).

    My component is now the wrong size.

  4. #4
    Sencha User
    Join Date
    Mar 2012
    Posts
    11
    Vote Rating
    0
    nixta is on a distinguished road

      0  

    Default


    Any thoughts on this? The app doesn't look too good when you pop back up the view stack and views only fill part of the screen.

Thread Participants: 1

Tags for this Thread