What is the difference between a Stackpanel and a Stacklayoutpanel?

What is the difference between a Stackpanel and a Stacklayoutpanel?

+3
source share
3 answers

According to the Dev Guide , the StackPanel is deprecated and you should use the StackLayoutPanel. Basically, StackPanel works only in quirks mode, and StackLayoutPanel works only in standard mode, and is also implemented in RootLayoutPanel, and not in RootPanel.

+3
source

LayoutPanels- This is a newer collection of panels that have much more predictable behavior in browsers. When choosing a choice, prefer something based on a layout system.

+1
source

waaaaay , div, .

So, when you want to do predictable things on different screen sizes, etc., the layout material does what you expect. So definitely use them over everything else. In fact, if you are trying to use GWT for ease of writing in Java and ignore web design, use as many FlowPanels with css as possible.

+1
source

All Articles