Layout Display Issue

GWT Designer allows you to quickly create the modules, composites, panels, remote services and other elements that comprise Google Web Tookit applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Layout Display Issue

Postby tinnitus007 » Wed Dec 01, 2010 12:03 pm

Absolute beginner (to Java, GWT, Smart GWT, GWT Designer), playing around with Layouts, trying to get a feel for how to set alignments, etc.

The following code works fine in dev mode, and displays in a browser as I expect:
Code: Select all
public class VLayoutDemo implements EntryPoint {

   public void onModuleLoad() {
      VLayout layout = new VLayout();
      layout.setDefaultLayoutAlign(Alignment.CENTER);
      layout.setBorder("");
      layout.setBackgroundColor("");
      layout.setAlign(Alignment.CENTER);
      
      Label lblLabeTest = new Label("Label Ipsum Lorem");
      lblLabeTest.setSize("350", "100");
            lblLabeTest.setAlign(Alignment.CENTER);
      lblLabeTest.setTitle("label");
      lblLabeTest.setStyleName("gwt-label");
      layout.addMember(lblLabeTest);

      layout.setLeft("30%");
      layout.draw();
   }

}


However, in the GWT Designer "Design" view, it's a bit truncated. Save/Refresh don't seem to improve it. What gives?

GWTD_Trunc.png
GWTD_Trunc.png (16.89 KiB) Viewed 155 times
tinnitus007
 
Posts: 3
Joined: Tue Sep 07, 2010 8:04 am

Re: Layout Display Issue

Postby Eric Clayberg » Thu Dec 09, 2010 4:21 pm

Give this a try using the latest GWT Designer 8.1 build...

http://code.google.com/webtoolkit/tools ... -beta.html
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to GWT Designer

Who is online

Users browsing this forum: No registered users and 2 guests

cron