composite not rendering correctly

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

composite not rendering correctly

Postby dcosio » Thu May 31, 2007 9:29 am

Hi, I created a composite that contains an AbsolutePanel. The panel contains
4 List boxes w/labels all wrapped in VerticalPanels and 2 date textboxes.Each date is wrapped in a VerticalPanel(contains the label and textbox/calender image) and the textbox and calender image are in a HorizontalPanel which is added to the VertialPanel.. They look fine in the designer for the Composite. But, When I add my Composite to the EntryPoint objects rootPane the HorizontalPanels of the date field are no longer part of the vertialPanel that they belong too. The date labels are in the correct position but the textbox/calender which are in the HorizonalPanel are at the bottom off the panel.. no where near where they should be.. WHy is this happening??

thanks
Dan
dcosio
 
Posts: 18
Joined: Wed May 30, 2007 10:32 am
Location: Boston, MA USA

Re: composite not rendering correctly

Postby Eric Clayberg » Thu May 31, 2007 4:36 pm

Without a test case or any screen shots, there is no way to know for sure.

You mentioned that you are using an AbsolutePanel (generally not a good idea, BTW), so make sure that you have a size set for it.
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

Postby dcosio » Fri Jun 01, 2007 3:53 am

I ended up removing the date panel and redoing it with an absolute panel.. That seems to work. I thought it might be an issue with inline or block elements but i tried to set them in my css and it didn't work.. I posted this issue to GWT forum also.. This is just a test so Im no too concerned with the UI stuff for now.. The Designer works pretty well for doing the ui layout.. But, im having a bigger issue with trying to do live testing.. I have another post on that..
dcosio
 
Posts: 18
Joined: Wed May 30, 2007 10:32 am
Location: Boston, MA USA

Postby Eric Clayberg » Sat Jun 02, 2007 5:06 am

dcosio wrote:I ended up removing the date panel and redoing it with an absolute panel.. That seems to work. I thought it might be an issue with inline or block elements but i tried to set them in my css and it didn't work.. I posted this issue to GWT forum also.. This is just a test so Im no too concerned with the UI stuff for now.. The Designer works pretty well for doing the ui layout.. But, im having a bigger issue with trying to do live testing.. I have another post on that..

Be careful using AbsolutePanels as they can behave differently under different operating systems and browsers.

It is usually a good idea to explicitly set their size properties as they will often not compute a decent preferred size based on their contents.
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

Postby dcosio » Mon Jun 04, 2007 3:45 am

I was just using this for my initial testing.. Any idea what panel is more commonly used.. Im assuming FlexPanel
dcosio
 
Posts: 18
Joined: Wed May 30, 2007 10:32 am
Location: Boston, MA USA

Postby Eric Clayberg » Mon Jun 04, 2007 8:58 am

dcosio wrote:I was just using this for my initial testing.. Any idea what panel is more commonly used.. Im assuming FlexPanel

FlexTable is one of the most powerful and commonly used choices.

HorizontalPanel and VerticalPanel are both very useful when nested.
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 3 guests