Results 1 to 4 of 4

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

  1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    11
    Vote Rating
    0
      0  

    Default 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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,554
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    Are you recreating the component when you go to push it for a second time?
    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
    Mar 2012
    Posts
    11
    Vote Rating
    0
      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
      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.

Tags for this Thread

Posting Permissions

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