PDA

View Full Version : Viewport centre region views work on initial load but not on history change



el_chief
4 Jan 2012, 8:12 PM
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!

mitchellsimoens
5 Jan 2012, 9:54 AM
Are you capturing when the history change event is fired?

el_chief
5 Jan 2012, 11:31 AM
@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