PDA

View Full Version : BorderLayout implementation?



barrygently
3 Dec 2006, 10:14 PM
Hi,

I was just wondering how the BorderLayout content panels are implemented?

I'm currently having a lot of problems with displaying absolutely positioned elements, I've having to subtract the size of certain regions to make the items appear in the right place. Also, for certain elements (say displayed over a west region) the element is often "cut off" at the region separator, regardless of the z-index given to it.

Are the content panels implemented using iframes or is it something else? How can I determine the position of an element within a panel without having to take the region sizes into account? Is it even possible?

Thanks,

Gary

jack.slocum
4 Dec 2006, 5:27 AM
All absolute positioned elements that should not be clipped by their container (layout regions) should be rendered to the body element and have a high z-index (try something real high if required). The most important thing is that their parent node must be the body, otherwise they get the coordinate system of the region (their offset parent) which I'm guessing is not what you want.

The regions are standard positioned div elements.

barrygently
4 Dec 2006, 8:23 PM
Hi Jack,

Thanks for that, it worked.

Gary