View Full Version : Panel: Its place still occupied after hiding it

25 Aug 2011, 2:42 AM
I have a panel which is a docked item of another panel.<br><br>Programmatically, i want this panel to disappear completely after i tap a button.<br><br>When i use hide() function, it hides the panel, but its place is still occupied. I want to free its place.<br><br>How can i achieve that?<br><br>I also created a css class with a rule height:0px and then assigned it to this panel with addCls() but this also didn't work.<br><br><br>

25 Aug 2011, 10:46 AM
Try using the mainPanel.remove(subPanel); that should free up the space.