Hi all
I'm using SmartGWT version 2.1, Eclipse SDK 3.6.
I created a Test Project to test some features i may need from smartGWT Showcase but i got an error while running in Development Mode the "Orientation" one.
The code is
After launching the application on the browser i don' see the icons onto the left tabs and the images into the Panes.
Moreover i got this SGWT_WARN message:
[LOG]
00:01:05,036 [ERROR] 11:37:29.238:WARN:VLayout:isc_OID_8:ignoring bad or negative height: auto [enable 'sizing' log for stack trace] ............
[/LOG];
I guess it is related to the Images, but i don't get why.
Is it related to the path of the images?
I'm using SmartGWT version 2.1, Eclipse SDK 3.6.
I created a Test Project to test some features i may need from smartGWT Showcase but i got an error while running in Development Mode the "Orientation" one.
The code is
Code:
import com.google.gwt.core.client.EntryPoint; import com.smartgwt.client.widgets.IButton; import com.smartgwt.client.widgets.Img; import com.smartgwt.client.widgets.events.ClickEvent; import com.smartgwt.client.widgets.events.ClickHandler; import com.smartgwt.client.widgets.layout.HLayout; import com.smartgwt.client.widgets.layout.VLayout; import com.smartgwt.client.widgets.tab.Tab; import com.smartgwt.client.widgets.tab.TabSet; public class Sample implements EntryPoint { public void onModuleLoad() { final TabSet leftTabSet = new TabSet(); leftTabSet.setWidth(400); leftTabSet.setHeight(200); Tab lTab1 = new Tab(); lTab1.setIcon("img/blu.png"); Img lImg1 = new Img("img/blu.png"); lTab1.setPane(lImg1); Tab lTab2 = new Tab(); lTab2.setIcon("img/verde.png"); Img lImg2 = new Img("img/verde.png"); lTab2.setPane(lImg2); leftTabSet.addTab(lTab1); leftTabSet.addTab(lTab2); HLayout buttons = new HLayout(); buttons.setMembersMargin(15); IButton blueButton = new IButton("Select Blue"); blueButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { leftTabSet.selectTab(0); } }); IButton greeButton = new IButton("Select Green"); greeButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { leftTabSet.selectTab(1); } }); buttons.addMember(greeButton); buttons.addMember(blueButton); VLayout vLayout = new VLayout(); vLayout.setMembersMargin(15); vLayout.addMember(buttons); vLayout.addMember(leftTabSet); vLayout.setHeight("auto"); vLayout.draw(); } }
Moreover i got this SGWT_WARN message:
[LOG]
00:01:05,036 [ERROR] 11:37:29.238:WARN:VLayout:isc_OID_8:ignoring bad or negative height: auto [enable 'sizing' log for stack trace] ............
[/LOG];
I guess it is related to the Images, but i don't get why.
Is it related to the path of the images?
Comment