layout/xul/grid/examples/divrowgrid.xul

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/xul/grid/examples/divrowgrid.xul	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,36 @@
     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" style="border: 2px solid green"
    1.16 +        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> 
    1.17 +
    1.18 +  <hbox>
    1.19 +    <grid style="width: 100px; border: 2px solid red;">     
    1.20 +	   <rows>
    1.21 +	     <row style="font-size: 40px">
    1.22 +			 <text value="foo1"/>
    1.23 +			 <text value="foo2"/>
    1.24 +		 </row>
    1.25 +		<description>
    1.26 +			this is some html in the row this should wrap if it is big enough.
    1.27 +		</description>
    1.28 +	     <row style="font-size: 40px">
    1.29 +			 <text value="foo3"/>
    1.30 +			 <text value="foo4"/>
    1.31 +		 </row>
    1.32 +
    1.33 +	   </rows>
    1.34 +	</grid>
    1.35 +	<spacer flex="1" style="background-color: white"/>
    1.36 +  </hbox>
    1.37 +
    1.38 +
    1.39 +</window>

mercurial