Tuesday, September 29, 2015

GWT 2.7 Layout Question

Hi,

Trying to create a HorizontalPanel with an East and West side.  Using the followint code the layout on the West side appears fine whil the East side it right justified.  Any suggestions on how to handle this?

HorizontalPanel REPORTSVP = new HorizontalPanel();

REPORTSVP.setSize("100%", "100%");
REPORTSVP.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);
REPORTSVP.setVerticalAlignment(HasVerticalAlignment.ALIGN_TOP);

VerticalPanel REPORTSWEST = new VerticalPanel();
REPORTSWEST.setSize("49%", "100%");
REPORTSWEST.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);
REPORTSWEST.setVerticalAlignment(HasVerticalAlignment.ALIGN_TOP);

VerticalPanel REPORTSEAST = new VerticalPanel();
REPORTSEAST.setSize("49%", "100%");
REPORTSEAST.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);
REPORTSEAST.setVerticalAlignment(HasVerticalAlignment.ALIGN_TOP);

HTML reports = new HTML("Reports");
reports.setStyleName("text-header1");
reports.setSize("100%", "100%");

HTML charts = new HTML("Charts");
charts.setStyleName("text-header1");
charts.setSize("100%", "100%");

REPORTSWEST.add(reports);
REPORTSEAST.add(charts);
REPORTSVP.add(REPORTSWEST);

 REPORTSVP.add(REPORTSEAST);
 ViewPanel.add(REPORTSVP);

Best Regards,

Ed

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment