Anchorlayout

From Documentation
Revision as of 04:49, 4 October 2011 by Jumperchen (talk | contribs) (Created page with "{{ZKComponentReferencePageHeader}} = Anchorlayout = *Demonstration: N/A *Java API: <javadoc>org.zkoss.zul.Anchorlayout</javadoc> *JavaScript API: <javadoc directory="jsdoc">zul...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Anchorlayout

Employment/Purpose

An anchorlayout lays out a container which can resize it's children base on its width and height

Example

ZKComRef Anchorlayout Example.png

<window title="anchorlayout Demo" border="normal" width="100%"
	height="100%">
	<anchorlayout id="al" width="100%" vflex="1"
		style="overflow:auto">
		<anchorchildren height="200px" anchor="-100">
			<window title="win1" border="normal" width="100%"
				height="100%">
				height is "200px" and width is its parent size minus 100
			</window>
		</anchorchildren>
		<anchorchildren anchor="50% -200">
			<window title="win2" border="normal" width="100%"
				height="100%">
				width is its parent size's 50%, and height is its parent
				size minus 200
			</window>
		</anchorchildren>
		<anchorchildren anchor="25% 20%">
			<window title="win3" border="normal" width="100%"
				height="100%">
				width is its parent size's 25%, and height is its parent
				size's 20%
			</window>
		</anchorchildren>
		<anchorchildren anchor="25% 20%">
			<window title="win4" border="normal" width="100%"
				height="100%">
				width is its parent size's 25%, and height is its parent
				size's 20%
			</window>
		</anchorchildren>
		<anchorchildren anchor="25% 20%">
			<window title="win5" border="normal" width="100%"
				height="100%">
				width is its parent size's 25%, and height is its parent
				size's 20%
			</window>
		</anchorchildren>
		<anchorchildren anchor="25% 20%">
			<window title="win6" border="normal" width="100%"
				height="100%">
				width is its parent size's 25%, and height is its parent
				size's 20%
			</window>
		</anchorchildren>
	</anchorlayout>
</window>

Supported Events

Name
Event Type
None None

Supported Children

*Anchorchildren

Use Cases

Version Description Example Location
     

Version History

Last Update : 2011/10/04


Version Date Content
6.0.0 October 4, 2011 Add the new Anchorlayout component



Last Update : 2011/10/04

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.