Right, the idea is to let the browser do 99% of the work, but walk the part of the widget hierarchy that "needs layout" whenever necessary (whenever any part of it changes size), to give those widgets that absolutely *must*, a chance to deal with the change. In the example you give, the map widget would almost definitely need this, and a few others would as well, but most won't, so it stays very fast most of the time.
On Fri, Jun 26, 2009 at 6:33 AM, dflorey <[email protected]> wrote: > > That sounds really great. I've spent many hours to get this done but > ended up with the WindowResizeListener approach. > Do you delegate the size to child panels in case of resize? I've had > trouble nesting stack panels and gwt-maps inside resizable panels (HSP/ > VSP). > > On Jun 15, 9:11 pm, Joel Webber <[email protected]> wrote: > > Yes, and yes. I've got it working, though I'm still not 100% happy with > the > > API, as I mentioned earlier. Now I'm trying to actually back into a > design > > document :) > > As a small teaser, the basic approach is to take advantage of the simple > > constraint system (probably accidentally) created by CSS like this: > > > > .rule { > > position: absolute; > > left: 0; right: 0; > > top: 0; bottom: 0; > > > > } > > > > You can create various constraints by mixing pairs of values, like {left, > > right}, {left, width}, and {right, width}. You can also use any units you > > want, which is great for dealing with font-size changes and the like. > It's > > actually not too far from what you get from the mac's InterfaceBuilder. > > > > There's a bit more magic to make it deal properly with arbitrary margin, > > border, and padding, and IE6 support is really hard, but does finally > work. > > > > > > > > On Mon, Jun 15, 2009 at 3:02 PM, Ray Cromwell <[email protected]> > wrote: > > > > > Joel, > > > Does this support arbitrary composition (dockpanels containing > > > dockpanels?) and does it work correctly with scrolling inside the > > > panels? > > > > > -Ray > > > > > On Mon, Jun 15, 2009 at 11:53 AM, Joel Webber<[email protected]> wrote: > > > > I'm still not 100% done with the API design, and a few edge-cases, > but > > > will > > > > announce on the lists as soon as I have something ready for everyone > to > > > try > > > > out. It uses a similar approach to the code in > > > > Wave, but is rather more general, and supports IE6 (which Wave > doesn't). > > > > > > On Thu, Jun 11, 2009 at 5:41 PM, Bruce Johnson <[email protected]> > wrote: > > > > > >> No, it's not checked in yet, but I think Joel might started a branch > to > > > >> land it before toooo long. > > > > > >> It isn't literally the same code as in Wave, but it's logically > > > >> equivalent. Joel can say a lot more about it than me. > > > > > >> On Thu, Jun 11, 2009 at 5:36 PM, dflorey <[email protected]> > > > wrote: > > > > > >>> Is the DockLayoutPanel presented at Google IO already in svn? The > one > > > >>> that is being used by the wave client? > > > >>> I've not been able to find it... > > > --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~----------~----~----~----~------~----~------~--~---
