0

Border layout can not set width=100%. Urgent please help

asked 2010-06-04 01:47:36 +0800

vinhvo gravatar image vinhvo
369 3

<?page title="NETMES" contentType="text/html;charset=UTF-8"?>
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c" ?>
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="./workCombinationWin"?>
<zk>
	<window title="" border="none" id="workCombinationWin"
		style="padding-top:30px;" width="100%" height="100%">
		<hbox spacing="0" width="100%" height="100%">
			<vbox spacing="0" width="100%" height="100%">
				<borderlayout height="450px" width="100%">
					<north title="North" maxsize="300" size="50%"
						splittable="true" collapsible="true">
						<borderlayout>
							<north title="West" size="100%"
								flex="true">
								<div style="background:#B8D335">
									<label value="25%"
										style="color:white;font-size:50px" />
								</div>
							</north>

						</borderlayout>
					</north>
					<center border="0">
						<borderlayout>

							<center>
								<label value="Here is a border"
									style="color:gray;font-size:30px" />
							</center>

						</borderlayout>
					</center>
				</borderlayout>
			</vbox>
			
		</hbox>
	</window>
</zk>


Why I tried to set boder layout width to specific number it works , however set width=100% the browser does not show anything:(.

delete flag offensive retag edit

4 Replies

Sort by ยป oldest newest

answered 2010-06-04 02:19:31 +0800

ashishd gravatar image ashishd flag of Taiwan
1972 6

Hi vinhvo,
Looks like a bug. Please post it to bug tracker

link publish delete flag offensive edit

answered 2010-06-04 02:34:49 +0800

vinhvo gravatar image vinhvo
369 3

did it :(.

link publish delete flag offensive edit

answered 2010-06-10 04:40:47 +0800

vinhvo gravatar image vinhvo
369 3

Resolution :

Please use the following setting to the hbox and the vbox.
For example,
<hbox pack="stretch" align="stretch"/>
<vbox pack="stretch" align="stretch"/>

link publish delete flag offensive edit

answered 2010-06-10 04:57:11 +0800

vinhvo gravatar image vinhvo
369 3

still does not work:

<?page title="NETMES" contentType="text/html;charset=UTF-8"?>
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c" ?>
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="./workCombinationWin"?>
<zk>
	<window title="" border="none" id="workCombinationWin"
		style="padding-top:30px;" width="100%" height="100%">
			<vbox spacing="0" width="100%" height="100%" pack="stretch" align="stretch">
				<borderlayout height="100%" width="100%">
					<north title="North" maxsize="300" size="50%"
						splittable="true" collapsible="true">
						<borderlayout>
							<north title="West" size="100%"
								flex="true">
								<div style="background:#B8D335">
									<label value="25%"
										style="color:white;font-size:50px" />
								</div>
							</north>

						</borderlayout>
					</north>
					<center border="0">
						<borderlayout>

							<center>
								<label value="Here is a border"
									style="color:gray;font-size:30px" />
							</center>

						</borderlayout>
					</center>
				</borderlayout>
			</vbox>
			
		
	</window>
</zk>

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2010-06-04 01:47:36 +0800

Seen: 584 times

Last updated: Jun 10 '10

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More