Results 1 to 3 of 3

Thread: Viewport centre region views work on initial load but not on history change

  1. #1
    Sencha User
    Join Date
    Oct 2011
    Location
    Vancouver, Canada
    Posts
    157
    Answers
    5
    Vote Rating
    14
      0  

    Default Viewport centre region views work on initial load but not on history change

    Howdy,

    I am doing the following:

    Viewport with an empty container as the centre region
    Controller and its view are loaded at run time, into the centre region (removeAll() followed by add())
    I am using the History class for navigation
    I can load any url (which loads the view into viewport), but if I go back and forth in the browser, they fail

    Any ideas?

    Thanks!

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

    Default

    Are you capturing when the history change event is fired?
    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
    Oct 2011
    Location
    Vancouver, Canada
    Posts
    157
    Answers
    5
    Vote Rating
    14
      0  

    Default

    @mitchell

    thanks for the quick response.

    the pages are switching correctly, but the actual view/layout is all screwed up, after the switch. they look fine on initial load.

    thanks

Posting Permissions

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