📄 b30-1968434.zul
字号:
<?xml version="1.0" encoding="UTF-8"?><!--B30-1968434.zul{{IS_NOTE Purpose: Description: History: Wed May 21 16:35:13 TST 2008, Created by jumperchen}}IS_NOTECopyright (C) 2008 Potix Corporation. All Rights Reserved.{{IS_RIGHT}}IS_RIGHT--><window> In IE, when you click the "add Tab" button, then the layout of gird should not be out of the tabpanel. <button label="add Tab" onClick="openNewTab()"/> <tabbox width="500px" height="300px"> <tabs id="tbsMain"/> <tabpanels id="tbpMain"/> </tabbox> <zscript><![CDATA[ public void openNewTab() { Tabpanel tabPanel = new Tabpanel(); tbpMain.appendChild(tabPanel); Tab tab = new Tab(); tab.setLabel("Tab2"); tbsMain.appendChild(tab); Grid g = new Grid(); Rows rows = new Rows(); for (int i = 0; i < 3; i++) { Row r = new Row(); r.appendChild(new Label("Test " + i)); r.setParent(rows); } rows.setParent(g); g.setWidth("200px"); g.setHeight("100px"); tabPanel.appendChild(g); tab.setSelected(true); } ]]></zscript></window>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -