-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlayout.xul
218 lines (198 loc) · 5.75 KB
/
layout.xul
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
<window title="XUL Layout"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script type="application/x-javascript"
src="chrome://global/content/dialogOverlay.js" />
<description><html:h1>XUL Box Layout</html:h1></description>
<vbox flex="1" style="overflow: auto">
<groupbox>
<caption label="flexiness" />
<hbox>
<button label="No Flex" />
<button label="No Flex" />
<button label="No Flex" />
<button label="No Flex" />
<button label="No Flex" />
</hbox>
<hbox>
<button label="There's a" />
<button label="spacer" />
<spacer flex="1" />
<button label="in the" />
<button label="middle." />
</hbox>
<hbox>
<button label="This spacer ->" />
<spacer flex="2" />
<button label="is bigger than this spacer, ->" />
<spacer flex="1" />
<button label="so there!" />
</hbox>
<hbox>
<button label="No Flex" />
<button label="No Flex" />
<button flex="1" label="flex=1" />
<button label="No Flex" />
<button label="No Flex" />
</hbox>
<hbox>
<button flex="1" label="flex=1" />
<button flex="2" label="flex=2" />
<button flex="3" label="flex=3" />
<button flex="4" label="flex=4" />
<button flex="5" label="flex=5" />
</hbox>
<hbox>
<button flex="1" label="flex=1" />
<button flex="1" label="flex=1" />
<button flex="1" label="flex=1" />
<button flex="1" label="flex=1" />
<button flex="1" label="flex=1" />
</hbox>
</groupbox>
<groupbox>
<caption label="direction" />
<hbox dir="forward">
<button label="Here" />
<button label="the" />
<button label="direction" />
<button label="is" />
<button label="forward" />
</hbox>
<hbox dir="reverse">
<button label="Here" />
<button label="the" />
<button label="direction" />
<button label="is" />
<button label="reverse" />
</hbox>
<hbox>
<button label="Here the" ordinal="4" />
<button label="ordinal" ordinal="1" />
<button label="attribute" ordinal="3" />
<button label="sets the order." ordinal="2" />
</hbox>
</groupbox>
<groupbox>
<caption label="packing" />
<hbox pack="start">
<button label="Here" />
<button label="the" />
<button label="packing" />
<button label="is" />
<button label="start" />
</hbox>
<hbox pack="center">
<button label="Here" />
<button label="the" />
<button label="packing" />
<button label="is" />
<button label="center" />
</hbox>
<hbox pack="end">
<button label="Here" />
<button label="the" />
<button label="packing" />
<button label="is" />
<button label="end" />
</hbox>
<hbox pack="start">
<button label="Here" />
<button label="packing" />
<button label="yields" />
<button label="to" />
<button label="flex" flex="1" />
</hbox>
</groupbox>
<groupbox>
<caption label="alignment" />
<hbox align="start">
<button label="Here" image="images/betty_boop.xbm" orient="vertical" />
<button orient="vertical">
<label value="the" />
<label value="alignment" />
</button>
<button label="is" image="images/betty_boop.xbm" />
<button label="start" />
</hbox>
<hbox align="center">
<button label="Here" image="images/betty_boop.xbm" orient="vertical" />
<button orient="vertical">
<label value="the" />
<label value="alignment" />
</button>
<button label="is" image="images/betty_boop.xbm" />
<button label="center" />
</hbox>
<hbox align="end">
<button label="Here" image="images/betty_boop.xbm" orient="vertical" />
<button orient="vertical">
<label value="the" />
<label value="alignment" />
</button>
<button label="is" image="images/betty_boop.xbm" />
<button label="end" />
</hbox>
<hbox align="baseline">
<button label="Here" image="images/betty_boop.xbm" orient="vertical" />
<button orient="vertical">
<label value="the" />
<label value="alignment" />
</button>
<button label="is" image="images/betty_boop.xbm" />
<button label="baseline" />
</hbox>
<hbox align="stretch">
<button label="Here" image="images/betty_boop.xbm" orient="vertical" />
<button orient="vertical">
<label value="the" />
<label value="alignment" />
</button>
<button label="is" image="images/betty_boop.xbm" />
<button label="stretch" />
</hbox>
</groupbox>
<groupbox orient="horizontal">
<caption label="equality" />
<vbox equalsize="always">
<button label="Here" image="images/betty_boop.xbm" orient="vertical" />
<button orient="vertical">
<label value="the" />
<label value="equalsize" />
<label value="attribute" />
</button>
<button label="is" image="images/betty_boop.xbm" />
<button label="always" />
</vbox>
<vbox equalsize="never">
<button label="Here" image="images/betty_boop.xbm" orient="vertical" />
<button orient="vertical">
<label value="the" />
<label value="equalsize" />
<label value="attribute" />
</button>
<button label="is" image="images/betty_boop.xbm" />
<button label="never" />
</vbox>
</groupbox>
<groupbox>
<caption label="hiddeness" />
<hbox>
<label value="Every other button in the line below is hidden" />
</hbox>
<hbox>
<button label="Every" />
<button label="other" hidden="true" />
<button label="button" />
<button label="in" hidden="true" />
<button label="the" />
<button label="line" hidden="true" />
<button label="below" />
<button label="is" hidden="true" />
<button label="hidden" />
</hbox>
</groupbox>
</vbox>
</window>