Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Tabset gives error about height not being set, while it is.

    Hello, using SmartGWT 2.5 official release.

    I have a tabset inside a VLayout, inside an expanded row of a listgrid.

    It gives me this error on expansion. It says that the tabSet has no/bad height.
    Code:
    13:28:19.999 [ERROR] [generatedcode] 13:28:19.998:RDQ0:WARN:PaneContainer:isc_TabSet_2_paneContainer:ignoring bad or negative height: -22 [enable 'sizing' log for stack trace]
    
    com.smartgwt.client.core.JsObject$SGWT_WARN: 13:28:19.998:RDQ0:WARN:PaneContainer:isc_TabSet_2_paneContainer:ignoring bad or negative height: -22 [enable 'sizing' log for stack trace]
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105)
        at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
        at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:167)
        at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:281)
        at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:531)
        at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
        at java.lang.Thread.run(Thread.java:680)
    ...But the height is actually set, in the expansion component, and the expansion component itself, being a VLayout is also set to 100%:
    Code:
    public class CourseEditionModelReferencesView extends VLayout {
    
    public void init(){
      setWidth100();
      setHeight100();
      setMargin(5);
      TabSet tabs = new TabSet();
      tabs.setHeight100();
      tabs.setWidth100();
    }
    The panes in the tabs themselves are, again, also set to heigh 100%.

    What is the problem here? Because it doesn't seem i'm doing something wrong :-)
Working...
X