View Full Version : NestedLayoutPanel in LayoutDialog not resizing in center
jclawson
4 Feb 2007, 12:53 PM
When a place a NestedLayoutPanel in the center region of a LayoutDialog it doesn't resize. The dialog layout has a west-center layout with a nested layout (north-center) in the dialog's center region. Although, I will admit that perhaps my code is incorrect. If you could either confirm that this is a bug or post example code I would be much appreciative.
Thanks!
Animal
5 Feb 2007, 1:17 AM
There are lots of examples on Jack's blog and in the documentation centre.
Post a link to a version of your page. That's the only way anyone can see what's wrong with it.
jclawson
5 Feb 2007, 5:19 PM
My problem was that I was telling the center region to show a panel that didn't exist in the center region. Rather than throw some kind of error... at all... it just stopped resizing the center region all together.
this.getLayout().getRegion('center').showPanel(this.requestPane);
this.requestPane existed in the west region. I think that this needs to at least cause a browser error so its tracable. It currently, throws absolutely no error.
tryanDLS
5 Feb 2007, 5:57 PM
showPanel() returns a null if you pass it a bogus panel. Checking for null is cheaper than catching/throwing errors via try/catch.
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.