Also, I'm pretty sure SplitLayoutPanel only works in pixels.
Instead of resizing in your constructor, try overriding onAttach and call the resize function in there. Make sure you call super.onAttach() before resize. Depending on how the parent classes are setup you may have to schedule the resize.
Hope that helps!
public void resetSplitters (){int ys = this.getOffsetHeight ();Window.alert ("h:" + ys);}
@Overrideprotected void onAttach(){super.onAttach ();resetSplitters ();}
onLoad()
or doAttachChildren()
instead of this method to avoid inconsistencies between logical and physical attachment states."--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
public void resetSplitters () {
// parent heightint ph = this.getParent().getOffsetHeight();// parent widthint pw = this.getParent().getOffsetWidth();slp_Outer.setWidgetSize(slp_North, ph/2);slp_North.setWidgetSize(fp_West, pw/2);
}