gecko-dev/layout/xul/grid/examples/scrollingcolumns.xul

81 строка
2.0 KiB
XML

<?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">
<rows>
<row flex="1"/>
<row flex="1"/>
<row flex="1"/>
</rows>
<columns>
<column>
<button label="left"/>
<button label="left"/>
<button label="left"/>
</column>
<columns flex="1" style="min-width: 1px; overflow: auto; background-color: green">
<column>
<button label="cell1"/>
<button label="cell1"/>
<button label="cell1"/>
</column>
<column>
<button label="cell2"/>
<button label="cell2"/>
<button label="cell2"/>
</column>
<column>
<button label="cell3"/>
<button label="cell3"/>
<button label="cell3"/>
</column>
<column>
<button label="cell4"/>
<button label="cell4"/>
<button label="cell4"/>
</column>
<column>
<button label="cell5"/>
<button label="cell5"/>
<button label="cell5"/>
</column>
<column>
<button label="cell6"/>
<button label="cell6"/>
<button label="cell6"/>
</column>
<column>
<button label="cell7"/>
<button label="cell7"/>
<button label="cell7"/>
</column>
</columns>
<column>
<button label="right"/>
<button label="right"/>
<button label="right"/>
</column>
</columns>
</grid>
<spacer width="100"/>
</hbox>
<spacer height="100"/>
</window>