Announcement

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

    cannot hide a child of a SectionStack

    Hidden content nested in a SectionStack is visible. I have a section that contains several ListGrids that I only want to display if they contain data. If I add them to a Layout, it works as expected, but if I put them in a Section, they are always visible when the section is expanded even if I setVisible(false).

    SmartGWT 4.1p SmartClient Version: v9.1p_2014-03-03/LGPL Development Only (built 2014-03-03)

    Tested in Firefox 29.0 and Chromium 34.0.1847.116 Ubuntu 12.04 (260972)

    Here's a simplified example:

    Code:
    	private class TestLayout extends VLayout
    	{
    		TestLayout()
    		{
    			setHeight(200);
    			setBorder("red solid 2px;");
    
    			final SectionStack sectionStack = new SectionStack();
    			final SectionStackSection section = new SectionStackSection("test");
    			final Label nestedLabel = new Label("nested hidden label");
    			nestedLabel.setVisible(false);
    			section.setItems(nestedLabel);
    			sectionStack.addSection(section);
    
    			setMembers(sectionStack);
    		}
    	}
Working...
X