Callback on Layouter start and end

Is there a way to get a javascript callback when the layouter starts and finishes?

I want to find out the size of the application that resulted after the layouter has run; could also be server side, but I need to execute Javascript to tell another part of the app the size the vaadin UI ended up with.

We found a way to do this ourselves:

  • Create a sublass of LayoutManager.
  • override layoutNow() and when it’s done do your code.
  • Use GWT deferred binding to use that class instead of the normal LayoutManager client-side.