answered
2014-04-03 06:21:21 +0800
chillworld 5367 ● 4 ● 9
https://github.com/chillw...
Like this?
<zk>
<window id="editWin" mode="overlapped" width="300px" sizable="true" border="normal"
height="500px" title="Edit ${param.pageId }"
closable="true" onClose="self.visible=false; event.stopPropagation();" visible="true" position="center,right">
<borderlayout width="100%" height="100%">
<north title="Title" collapsible="true" height="33%">
<textbox id="titleBox" rows="15" width="100%"></textbox>
</north>
<center title="Code" flex="true">
<textbox id="codeBox" rows="15" width="100%"></textbox>
</center>
<south height="33%" border="1px">
<vbox vflex="1" style="border: 1px solid green">
<grid oddRowSclass="none">
<columns>
<column hflex="2"/>
<column hflex="3"/>
<column hflex="2"/>
</columns>
<rows>
<row>
<cell align="center" rowspan="2"><button id="calcBtn" label="Calc"></button></cell>
<cell align="center"><label id="unitLbl" value="(000)"></label></cell>
<cell align="center"><label id="respSymbolLbl" value="#"></label></cell>
</row>
<row>
<cell align="center"><label id="audLbl" value="99000"></label></cell>
<cell align="center"><label id="respLbl" value="99"></label></cell>
</row>
</rows>
</grid>
<vbox vflex="1" hflex="1" pack="end" align="end">
<hbox spacing="10px" style="border: 1px solid blue" >
<button id="okBtn" label="OK"/>
<button id="cancelBtn" label="Cancel"></button>
</hbox>
</vbox>
</vbox>
</south>
</borderlayout>
</window>
</zk>
To make it easy to test I created a fiddle.
If you don't know fiddle : click the link and push on run. Your example code will be runned at that site.
Also congratz to post code what you could directly use in zk fiddle.
Like that we can test in fiddle a lot easier then that we have to remove all links to your composer/vm.
Now here is some more info about hflex/vflex and vbox/hbox.
Greetz chill.
+1 for the nice code block, directly to use in fiddle.
chillworld ( 2014-04-03 06:39:57 +0800 )edit