Hi Isomorphic,
please see this minimal testcase (replace BuiltInDS.java), that does not render the upper of the two ListGrids correctly (screenshot included).
If you remove the ListGrid from the inner VLayout, the effect is gone.
I use SNAPSHOT_v9.1d_2014-01-22/EVAL Deployment in Eclipse DevMode.
In my real use case the result is the same and I additionally get the following log entries in the Development Mode tab in Eclipse (only in my project, not in this sample)
Best regards,
Blama
BuiltInDS.java:
please see this minimal testcase (replace BuiltInDS.java), that does not render the upper of the two ListGrids correctly (screenshot included).
If you remove the ListGrid from the inner VLayout, the effect is gone.
I use SNAPSHOT_v9.1d_2014-01-22/EVAL Deployment in Eclipse DevMode.
In my real use case the result is the same and I additionally get the following log entries in the Development Mode tab in Eclipse (only in my project, not in this sample)
Code:
[ERROR] [lms] - 16:19:58.737:TMR8:WARN:GridBody:isc_LeadpickingVLayout_2_0_body:row heights not yet available; returning all zeroes [ERROR] [lms] - 16:19:58.809:TMR8:WARN:GridBody:isc_LeadpickingVLayout_2_0_body:row heights not yet available; returning all zeroes [ERROR] [lms] - 16:19:58.815:TMR8:WARN:GridBody:isc_LeadpickingVLayout_2_0_body:row heights not yet available; returning all zeroes
Blama
BuiltInDS.java:
Code:
package com.smartgwt.sample.client; import com.google.gwt.core.client.EntryPoint; import com.smartgwt.client.data.DataSource; import com.smartgwt.client.types.VisibilityMode; import com.smartgwt.client.widgets.grid.ListGrid; import com.smartgwt.client.widgets.layout.SectionStack; import com.smartgwt.client.widgets.layout.SectionStackSection; import com.smartgwt.client.widgets.layout.VLayout; public class BuiltInDS implements EntryPoint { public void onModuleLoad() { com.google.gwt.user.client.Window.setMargin("0px"); Myclass mc = new Myclass(); mc.setWidth100(); mc.setHeight100(); mc.draw(); } public final class Myclass extends VLayout { private ListGrid lg1; private ListGrid lg2; private SectionStack sectionStack; private SectionStackSection s1; private SectionStackSection s2; public Myclass() { super(20); setPadding(0); setHeight100(); s1 = new SectionStackSection("Remove lg1 from VLayout and add directly with s1.setItems(lg1) to repair.") { { setExpanded(true); } }; lg1 = new ListGrid(DataSource.get("animals")) { { setHeight100(); setAutoFetchData(true); } }; VLayout vl1 = new VLayout(5); vl1.setPadding(5); vl1.setMembers(lg1); s1.setItems(vl1); s2 = new SectionStackSection("S2") { { lg2 = new ListGrid(DataSource.get("supplyItem")) { { setHeight100(); setAutoFetchData(true); } }; setItems(lg2); setExpanded(true); } }; sectionStack = new SectionStack() { { setSections(s1, s2); setVisibilityMode(VisibilityMode.MULTIPLE); setCanCollapseAll(false); } }; addMember(sectionStack); } } }
Comment