The LayoutPanels' already swap properly in RTL locales, don't they? http://gwt.google.com/samples/Showcase/Showcase.html?locale=ar_YE http://gwt.google.com/samples/Showcase/Showcase.html?locale=en
On Thu, Mar 31, 2011 at 2:33 PM, Jeff Larsen <[email protected]> wrote: > In some instances, it would be nice to have LayoutPanel swap left and > right. I was thinking of something like adding a > > private boolean bidi = false; > > public void setWidgetLeftWidth(Widget child, double left, Unit leftUnit, > double width, > Unit widthUnit) { > assertIsChild(child); > if (bidi && isRtl()) { > getLayer(child).setRightWidth(left, leftUnit, width, widthUnit); > } else { > getLayer(child).setLeftWidth(left, leftUnit, width, widthUnit); > } > animate(0); > } > > > public void setBidiEnabled(boolean enable){ > bidi = enable; > } > > etc etc etc. > > What do you guys think? This would allow for future enhancements like > making TabLayoutPanel bidi enabled, where the tabs appear on the right side > and work their way left instead of on the starting on the left and being > added to the left. > > -- > http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
