layout/xul/grid/examples/scrollingcolumns.xul

Fri, 16 Jan 2015 04:50:19 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 04:50:19 +0100
branch
TOR_BUG_9701
changeset 13
44a2da4a2ab2
permissions
-rw-r--r--

Replace accessor implementation with direct member state manipulation, by
request https://trac.torproject.org/projects/tor/ticket/9701#comment:32

     1 <?xml version="1.0"?> 
     2 <!-- This Source Code Form is subject to the terms of the Mozilla Public
     3    - License, v. 2.0. If a copy of the MPL was not distributed with this
     4    - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
     7 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> 
     9 <!DOCTYPE window> 
    12 <window orient="vertical"
    13         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> 
    15   <hbox flex="1">
    16     <grid style="border: 2px solid red" flex="1">
    18        <rows>
    19 				<row flex="1"/>
    20 				<row flex="1"/>
    21 				<row flex="1"/>
    22            </rows>
    23        <columns>
    25 		   <column>
    26 	   		  <button label="left"/>
    27 	   		  <button label="left"/>
    28 	   		  <button label="left"/>
    29    		   </column>
    31          <columns flex="1" style="min-width: 1px; overflow: auto; background-color: green">
    32            <column>
    33 	   	  	  <button label="cell1"/>
    34 	   	  	  <button label="cell1"/>
    35 	   	  	  <button label="cell1"/>
    36 	       </column>
    37            <column>
    38 	   	  	  <button label="cell2"/>
    39 	   	  	  <button label="cell2"/>
    40 	   	  	  <button label="cell2"/>
    41 	       </column>
    42            <column>
    43 	   	  	  <button label="cell3"/>
    44 	   	  	  <button label="cell3"/>
    45 	   	  	  <button label="cell3"/>
    46 	       </column>
    47            <column>
    48 	   	  	  <button label="cell4"/>
    49 	   	  	  <button label="cell4"/>
    50 	   	  	  <button label="cell4"/>
    51 	       </column>
    52            <column>
    53 	   	  	  <button label="cell5"/>
    54 	   	  	  <button label="cell5"/>
    55 	   	  	  <button label="cell5"/>
    56 	       </column>
    57            <column>
    58 	   	  	  <button label="cell6"/>
    59 	   	  	  <button label="cell6"/>
    60 	   	  	  <button label="cell6"/>
    61 	       </column>
    62            <column>
    63 	   	  	  <button label="cell7"/>
    64 	   	  	  <button label="cell7"/>
    65 	   	  	  <button label="cell7"/>
    66 	       </column>
    67 	   </columns>
    68   		   <column>
    69 	   		  <button label="right"/>
    70 	   		  <button label="right"/>
    71 	   		  <button label="right"/>
    72    		   </column>
    74 	 </columns>
    76 	</grid>
    77 	<spacer width="100"/>
    78   </hbox>
    79   <spacer height="100"/>
    80 </window>

mercurial