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>Using auto dimensions for the grid.</p>
19 <script type="text/javascript">
20 qx.core.Init.getInstance().defineMain(function()
22 var gl = new qx.ui.layout.GridLayout;
24 gl.setLocation(20, 48);
25 gl.setDimension("auto", "auto");
26 gl.setBorder(qx.renderer.border.BorderPresets.getInstance().outset);
30 gl.setHorizontalSpacing(4);
31 gl.setVerticalSpacing(8);
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.basic.Terminator;
52 term2.setBackgroundColor("red");
55 var term3 = new qx.ui.basic.Terminator;
56 term3.setBackgroundColor("green");
59 var term4 = new qx.ui.basic.Terminator;
60 term4.setBackgroundColor("blue");
63 var term5 = new qx.ui.basic.Terminator;
64 term5.setBackgroundColor("fuchsia");
67 var term6 = new qx.ui.basic.Terminator;
68 term6.setBackgroundColor("olive");
71 var term7 = new qx.ui.basic.Terminator;
72 term7.setBackgroundColor("maroon");
75 var term8 = new qx.ui.basic.Terminator;
76 term8.setBackgroundColor("navy");