Subversion Repositories Applications.papyrus

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2150 mathias 1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2
	"http://www.w3.org/TR/html4/strict.dtd">
3
<html>
4
<head>
5
	<title>SplitContainer Widget Demo</title>
6
 
7
	<script type="text/javascript" src="../../../dojo/dojo.js"
8
		djConfig="isDebug: true, parseOnLoad: true"></script>
9
	<script type="text/javascript" src="../_testCommon.js"></script>
10
 
11
	<script type="text/javascript">
12
		dojo.require("dijit.layout.SplitContainer");
13
		dojo.require("dijit.layout.ContentPane");
14
		dojo.require("dojo.parser");	// scan page for widgets and instantiate them
15
	</script>
16
	<style type="text/css">
17
		@import "../../../dojo/resources/dojo.css";
18
		@import "../css/dijitTests.css";
19
		.dojoContentPane {
20
			padding:1em;
21
		}
22
	</style>
23
</head>
24
<body>
25
	<h1 class="testTitle">Dijit Split Container Test</h1>
26
	<p>HTML before</p>
27
 
28
	<div dojoType="dijit.layout.SplitContainer"
29
		orientation="vertical"
30
		sizerWidth="7"
31
		activeSizing="false"
32
		style="border: 1px solid #bfbfbf; float: left; margin-right: 30px;  width: 400px; height: 300px;"
33
	>
34
		<div dojoType="dijit.layout.ContentPane" sizeMin="10" sizeShare="50">
35
			this box has three split panes
36
		</div>
37
		<div dojoType="dijit.layout.ContentPane" sizeMin="20" sizeShare="50"
38
			style="background-color: yellow; border: 3px solid purple;">
39
			in vertical mode
40
		</div>
41
		<div dojoType="dijit.layout.ContentPane" sizeMin="10" sizeShare="50">
42
			without active resizing
43
		</div>
44
	</div>
45
 
46
	<div dojoType="dijit.layout.SplitContainer"
47
		orientation="horizontal"
48
		sizerWidth="7"
49
		activeSizing="true"
50
		style="border: 1px solid #bfbfbf; float: left; width: 400px; height: 300px;">
51
		<div dojoType="dijit.layout.ContentPane" sizeMin="20" sizeShare="20">
52
			this box has two horizontal panes
53
		</div>
54
		<div dojoType="dijit.layout.ContentPane" sizeMin="50" sizeShare="50">
55
			with active resizing, a smaller sizer, different starting sizes and minimum sizes
56
		</div>
57
	</div>
58
 
59
	<p style="clear: both;">HTML after</p>
60
 
61
the following splitter contains two iframes, see whether the resizer works ok in this situation
62
<div dojoType="dijit.layout.SplitContainer"
63
	orientation="horizontal"
64
	sizerWidth="5"
65
	activeSizing="false"
66
	style="border: 2px solid black; float: left; width: 100%; height: 300px;"
67
>
68
	<div dojoType="dijit.layout.ContentPane" sizeMin="20" sizeShare="20">
69
		<iframe style="width: 100%; height: 100%"></iframe>
70
	</div>
71
	<div dojoType="dijit.layout.ContentPane" sizeMin="50" sizeShare="50">
72
		<iframe style="width: 100%; height: 100%"></iframe>
73
	</div>
74
</div>
75
 
76
</body>
77
</html>