PDA

View Full Version : Need strategy to implement window layout



hdave
22 Jul 2010, 12:42 PM
Totally new to GXT here. I have a one-page Javascript app I am trying to create. The layout is fairly standard full page layout. It has a a static height header at the top and a status toolbar at the bottom. In the middle will be a left and right separated by a splitter. The BorderLayout seems exactly what I need except I don't want a splitter below the header and above the status bar.

I am thinking about using a RowLayout with 3 rows instead -- and put a BorderLayout (without a north or south) in the middle row.

Is this a good approach?

sven
22 Jul 2010, 12:45 PM
You can mark the north and south region as not splitable (setSplit(false) on the layoutdata). Than they dont have a splitbar

sven
22 Jul 2010, 12:45 PM
Is this a good approach? Every approach that adds another level of nesting is a wrong approach.

hdave
22 Jul 2010, 1:01 PM
Perfect -- thanks.