3 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4 <title>qooxdoo » Demo</title>
5 <link type="text/css" rel="stylesheet" href="../../resource/css/layout.css"/>
7 <link type="text/css" rel="stylesheet" href="../../resource/css/layout_ie.css"/>
9 <script type="text/javascript" src="../../script/qx.js"></script>
12 <script type="text/javascript" src="../../script/layout.js"></script>
14 <div id="demoDescription">
15 <p>Test for qx.ui.layout.GridLayout.</p>
16 <p>Added some own sizes and use more complex children.</p>
17 <p>The olive child has a width of 50% (which is related to the cell size here) and a horizontal alignment 'center'.</p>
18 <p>The navi child has a height of 20 pixel and is aligned to the bottom of the cell.</p>
21 <script type="text/javascript">
22 qx.core.Init.getInstance().defineMain(function()
24 var gl = new qx.ui.layout.GridLayout;
26 gl.setLocation(20, 48);
27 gl.setDimension(462, 128);
28 gl.setBorder(qx.renderer.border.BorderPresets.getInstance().outset);
33 gl.setColumnWidth(0, 100);
34 gl.setColumnWidth(1, 200);
35 gl.setColumnWidth(2, 50);
36 gl.setColumnWidth(3, 100);
38 gl.setRowHeight(0, 40);
39 gl.setRowHeight(1, 80);
41 qx.ui.core.ClientDocument.getInstance().add(gl);
47 var term1 = new qx.ui.basic.Terminator;
48 term1.setBackgroundColor("yellow");
51 var term2 = new qx.ui.form.Button("Hello World", "icon/22/colors.png");
54 var term3 = new qx.ui.basic.Terminator;
55 term3.setBackgroundColor("green");
58 term3.setBorder("1px solid black");
61 var term4 = new qx.ui.basic.Terminator;
62 term4.setBackgroundColor("blue");
65 var term5 = new qx.ui.basic.Terminator;
66 term5.setBackgroundColor("fuchsia");
69 var term6 = new qx.ui.basic.Terminator;
70 term6.setBackgroundColor("olive");
71 term6.setWidth("50%");
72 term6.setHorizontalAlign("center");
75 var term7 = new qx.ui.basic.Terminator;
76 term7.setBackgroundColor("maroon");
79 var term8 = new qx.ui.basic.Terminator;
80 term8.setBackgroundColor("navy");
82 term8.setVerticalAlign("bottom");