Changing panel button during maximize event, setClosable() for example, panel will not resize back when restore from maximized.
<zk> <zscript><![CDATA[ void onMaximize() { if (panel.isMaximized()) { panel.setClosable(false); } else { panel.setClosable(true); } } ]]></zscript> <panel id="panel" title="Bug" border="normal" width="300px" height="200px" minimizable="true" collapsible="true" closable="true" maximizable="true" onMaximize="onMaximize()"> <panelchildren></panelchildren> </panel> </zk>