layout/xul/grid/examples/scrollingcolumns.xul

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/xul/grid/examples/scrollingcolumns.xul	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,80 @@
     1.4 +<?xml version="1.0"?> 
     1.5 +<!-- This Source Code Form is subject to the terms of the Mozilla Public
     1.6 +   - License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 +   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
     1.8 +
     1.9 +
    1.10 +<?xml-stylesheet href="chrome://global/skin/" type="text/css"?> 
    1.11 +
    1.12 +<!DOCTYPE window> 
    1.13 +
    1.14 +
    1.15 +<window orient="vertical"
    1.16 +        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> 
    1.17 +
    1.18 +  <hbox flex="1">
    1.19 +    <grid style="border: 2px solid red" flex="1">
    1.20 +
    1.21 +       <rows>
    1.22 +				<row flex="1"/>
    1.23 +				<row flex="1"/>
    1.24 +				<row flex="1"/>
    1.25 +           </rows>
    1.26 +       <columns>
    1.27 +
    1.28 +		   <column>
    1.29 +	   		  <button label="left"/>
    1.30 +	   		  <button label="left"/>
    1.31 +	   		  <button label="left"/>
    1.32 +   		   </column>
    1.33 +
    1.34 +         <columns flex="1" style="min-width: 1px; overflow: auto; background-color: green">
    1.35 +           <column>
    1.36 +	   	  	  <button label="cell1"/>
    1.37 +	   	  	  <button label="cell1"/>
    1.38 +	   	  	  <button label="cell1"/>
    1.39 +	       </column>
    1.40 +           <column>
    1.41 +	   	  	  <button label="cell2"/>
    1.42 +	   	  	  <button label="cell2"/>
    1.43 +	   	  	  <button label="cell2"/>
    1.44 +	       </column>
    1.45 +           <column>
    1.46 +	   	  	  <button label="cell3"/>
    1.47 +	   	  	  <button label="cell3"/>
    1.48 +	   	  	  <button label="cell3"/>
    1.49 +	       </column>
    1.50 +           <column>
    1.51 +	   	  	  <button label="cell4"/>
    1.52 +	   	  	  <button label="cell4"/>
    1.53 +	   	  	  <button label="cell4"/>
    1.54 +	       </column>
    1.55 +           <column>
    1.56 +	   	  	  <button label="cell5"/>
    1.57 +	   	  	  <button label="cell5"/>
    1.58 +	   	  	  <button label="cell5"/>
    1.59 +	       </column>
    1.60 +           <column>
    1.61 +	   	  	  <button label="cell6"/>
    1.62 +	   	  	  <button label="cell6"/>
    1.63 +	   	  	  <button label="cell6"/>
    1.64 +	       </column>
    1.65 +           <column>
    1.66 +	   	  	  <button label="cell7"/>
    1.67 +	   	  	  <button label="cell7"/>
    1.68 +	   	  	  <button label="cell7"/>
    1.69 +	       </column>
    1.70 +	   </columns>
    1.71 +  		   <column>
    1.72 +	   		  <button label="right"/>
    1.73 +	   		  <button label="right"/>
    1.74 +	   		  <button label="right"/>
    1.75 +   		   </column>
    1.76 +
    1.77 +	 </columns>
    1.78 +
    1.79 +	</grid>
    1.80 +	<spacer width="100"/>
    1.81 +  </hbox>
    1.82 +  <spacer height="100"/>
    1.83 +</window>

mercurial