-- "Please consider the environment before printing this e-mail" The Newspaper Marketing Agency: Opening Up Newspapers: http://www.nmauk.co.uk/ This e-mail and any attachments are confidential, may be legally privileged and are the property of NI Group Limited (which is the holding company for the News International group, is registered in England under number 81701 and whose registered office is 3 Thomas More Square, London E98 1XY, VAT number GB 243 8054 69), on whose systems they were generated. If you have received this e-mail in error, please notify the sender immediately and do not use, distribute, store or copy it in any way. Statements or opinions in this e-mail or any attachment are those of the author and are not necessarily agreed or authorised by NI Group Limited or any member of its group. NI Group Limited may monitor outgoing or incoming emails as permitted by law. It accepts no liability for viruses introduced by this e-mail or attachments.
public static void adjustHeight(final DockLayoutPanel topPanel, final
SimplePanel bodyPanel, final DockLayoutPanel outerPanel, final boolean
public void execute()
// do your stuff.
let me know if this help!
On Nov 29, 10:08 am, George Agiasoglou
> Hi group,
> Consider an application which has a *DeckLayoutPanel* as a shell, and has
> two DockLayoutPanel as children, which means only one child is shown at any
> time. I am using MVP with Activities and Places, there are two places and
> each place corresponds to displaying a child.
> When the app is initialised both children are injected (by gin) and added
> to the *DeckLayoutPanel.*
Example: in my animation components I always first check that the
widget is attached as otherwise the animations are based on (most of
the time) incorrect dimensions as the browser didn't had time to
render them correctly.
This check overcomes a lot of problems.
On Nov 30, 1:19 pm, George Agiasoglou
1. Use LayoutPanel instead of DockLayoutPanel. LayoutPanel allows you
to add two widgets that occupy the same space. If you don't specify
the position of each child widget, each child widget will occupy the
entire space available. From this moment all you need to do is hide
one of them depending on where users clicks.
2. When necessary, detach one widget and attach the other one. In each
case these widgets should pick up their size automatically from their
parent widget - there is no need to set their size explicitly as long
as you use widgets that support resize.