blob: 3d698e9a1982c3ad688fa7e855ed962c0d150d04 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>qooxdoo » Demo</title>
<link type="text/css" rel="stylesheet" href="../../resource/css/layout.css"/>
<!--[if IE]>
<link type="text/css" rel="stylesheet" href="../../resource/css/layout_ie.css"/>
<![endif]-->
<script type="text/javascript" src="../../script/qx.js"></script>
</head>
<body>
<script type="text/javascript" src="../../script/layout.js"></script>
<div id="demoDescription">
<p>Testing qx.ui.form.ComboBox behaviour when inside a container with scroll bars and the popup list goes off the screen.</p>
</div>
<script type="text/javascript">
qx.core.Init.getInstance().defineMain(function() {
var box = new qx.ui.layout.BoxLayout('vertical');
box.set({left: 5, right: 300, top: 30, bottom: 20, overflow: 'scroll', backgroundColor: '#FFE'});
for (var row = 0; row < 8; row++) {
var rowBox = new qx.ui.layout.BoxLayout;
rowBox.set({ marginBottom: 100, width: 'auto', height: 'auto' });
for (var col = 0; col < 8; col++) {
var cb = new qx.ui.form.ComboBox;
for (var i = 0; i < 15; i++) {
cb.add(new qx.ui.form.ListItem('Item '+i));
}
cb.setEditable(true);
cb.setValue('Row '+row+', col '+col);
cb.setMarginRight(100);
rowBox.add(cb);
}
box.add(rowBox);
}
box.addToDocument();
});
</script>
</body>
</html>
|