PDA

View Full Version : Another BorderLayout in a portlet window question.



miguel_eduardo
21 Feb 2007, 12:14 PM
I've been able to add a BorderLayout into a portlet window and create a couple of panels for it and it all displays fine initially. One of my panels has a collapsable region (north), the other is just a GridPanel.

But when the size of the portlet window changes ( i.e becomes narrower) the the portlet window gets scroll bars ( I have "overflow: auto", for the <div> the BorderLayout is attached to) and the BorderLayout doesn't resize. I also have mointorWindowResize set to true for the BorderLayout.

Odd thing is b/c the portlet window has scroll bars I am able to scroll over and basically see the entire BorderLayout. If I collapse the north region the borderlayout gets resized and everything fits nicely again. I would have suspected that with monitorWindowRegion set to true, any change in the container size ( i.e my portlet window) should trigger a resize. Am I misunderstanding the monitorWindowResize functionality?

Any initial ideas? I can provide code if it would help but I thought I'd just get some initial opinions first.

Cheers,

Michael