Just to keep LayoutPanel class simple with only the required methods added to AbsolutePanel widget:
http://pastebin.com/m7fc7deb0 I agree, LayoutData should for that purpose. Something like: LayoutPanel.add(Widget w, LayoutData data) should replace AbsolutePanel.add(). On Aug 7, 10:42 am, Johan Rydberg <[email protected]> wrote: > > I did a very-very simplified layout system based on > > top,bottom,left,right,width and height CSS attributes: > > >http://69.20.122.77:8880/gwt-layout/ > > > So far SimpleLayout, HBoxLayout & VBoxLayout are implemented. > > > Source files:http://69.20.122.77:8880/gwt-layout/org.gwt20.mosaic.demo.tbz2 > > > The EntryPoint class for the demo is:http://pastebin.com/m27e7a4e7 > > Nice work as always George, > > But why use a widget wrapper to define alignments for a child of the > container? I must say I like the idea of passing layout-data to the > add() method better. --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~----------~----~----~----~------~----~------~--~---
