📄 b30-1737660.zul
字号:
<?xml version="1.0" encoding="UTF-8"?>
<?page title="ZKD Debug Page"
style="height:100%;width:100%;margin:0;padding:0;"?>
<zk>
The header cells' size should rendered correctly.
<window id="winTest"
top="15px"
left="15px"
height="400px"
width="700px"
sizable="false"
title="Test Harness"
closable="false"
mode="overlapped"
border="normal"
style="overflow:hidden;">
<zscript><![CDATA[
// Loop for two boxes
for (int z=0; z<2; z++) {
// Draw the listbox
Listbox lb = new Listbox();
lb.setHeight("160px");
lb.setParent(winTest);
Listhead lhs = new Listhead();
lhs.setParent(lb);
// Draw the headings
for (x=1; x<8; x++) {
String title = new String("12345678901234567890").substring(0, x*2);
Listheader lh = new Listheader();
lh.setLabel(title);
lh.setParent(lhs);
}
// Add some items
for (y=0; y<5; y++) {
Listitem li = new Listitem();
for (x=1; x<8; x++) {
String title = new String("12345678901234567890").substring(0,x*2);
Listcell lc = new Listcell();
lc.setLabel(title);
lc.setParent(li);
}
// Hide a few rows on the second pass to show the bug
if (y < (z*2))
li.setVisible(false);
li.setParent(lb);
}
}
]]></zscript>
</window>
</zk>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -