Thursday, December 27, 2012

Re: Alignment of FocusPanel with PCT?

HorizontalPanel uses HTML table to align its children. In your case you probably end up having two HTML table cells (<td>) each with 50% width. The first cell contains your first FocusPanel with 90% width of the 50% cell width.

So what you really want is that the first cell of the used HTML table has a width of 90% and the widget inside that cell should take up the whole space. To do so you have to call

horizontalPanel.setCellWidth(firstFocusPanel, "90%");

and remove the width from your first FocusPanel.

-- J.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/jCfVHKD_HdUJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment