-
31 Oct 2011 6:46 AM #1
Yet another Window class question....
Yet another Window class question....
Is there a "proper" or "recommended" way to put contents in a Window?
I've tried both by using Panel classes (HorizontalPanel, VerticalPanel), as well as using the LayoutContainer classes (HorizontalLayoutContainer, VerticalLayoutContainer).
Both seem to work, though the font is a little different for labels inside the Panel versus LayoutContainer classes.
Interestingly, the Window will auto-size to accommodate if I use a HorizontalPanel with multiple Labels inside it, but will only partially do so with a HorizontalLayoutContainer.
In any case, is there a reason to use one or the other, or does it not matter when using the Window class?
-
31 Oct 2011 6:49 AM #2
HorizontalLayoutContainer is a GXT class and can size its children. HorizontalPanel is a GWT class which does not size its children at all.
It depends on your requirements what you should use
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote