I have a rather large form I want to put in a modal window in my CMP. I've set it to be 97% width of the browser viewport and works fine unless the user resizes their browser.
I can't seem to work out how to have the window adapt to the new browser size.
At the moment I have something along the lines of the following on my grid:
,listeners: {
'resize': function() {
MyComponent.window.MyWindow.doLayout();
}
}
So as I understand it, this is listening for a resize event on my grid.
Any hints as to what I'm missing?