summaryrefslogtreecommitdiffstats
path: root/layout/xul/grid/examples/scrollingrows.xul
blob: fd5077cde31c4e4dda4c0acee0c8ee52ac6e5caf (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
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
<?xml version="1.0"?> 
<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->


<?xml-stylesheet href="chrome://global/skin/" type="text/css"?> 

<!DOCTYPE window> 


<window orient="vertical"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> 

  <hbox flex="1">
    <grid style="border: 2px solid red" flex="1">

     <columns>
        <column flex="1"/>
        <column flex="1"/>
        <column flex="1"/>
     </columns>

       <rows>
		   <row>
	   		  <button label="left"/>
	   		  <button label="left"/>
	   		  <button label="left"/>
   		   </row>

         <rows flex="1" style="border: 10px inset gray; overflow: auto; background-color: green">
           <row>
	   	  	  <button label="cell1"/>
	   	  	  <button label="cell1"/>
	   	  	  <button label="cell1"/>
	       </row>
           <row>
	   	  	  <button label="cell2"/>
	   	  	  <button label="cell2"/>
	   	  	  <button label="cell2"/>
	       </row>
           <row>
	   	  	  <button label="cell3"/>
	   	  	  <button label="cell3"/>
	   	  	  <button label="cell3"/>
	       </row>
           <row>
	   	  	  <button label="cell4"/>
	   	  	  <button label="cell4"/>
	   	  	  <button label="cell4"/>
	       </row>
           <row>
	   	  	  <button label="cell5"/>
	   	  	  <button label="cell5"/>
	   	  	  <button label="cell5"/>
	       </row>
           <row>
	   	  	  <button label="cell6"/>
	   	  	  <button label="cell6"/>
	   	  	  <button label="cell6"/>
	       </row>
           <row>
	   	  	  <button label="cell7"/>
	   	  	  <button label="cell7"/>
	   	  	  <button label="cell7"/>
	       </row>
	   </rows>
  		   <row>
	   		  <button label="right"/>
	   		  <button label="right"/>
	   		  <button label="right"/>
   		   </row>

	 </rows>

	</grid>
	<spacer width="100"/>
  </hbox>
  <spacer height="100"/>
</window>