Please make a new question in stead of polluting older questions. You can refer to this question in your new question.
chillworld ( 2015-05-26 17:49:31 +0800 )edit-
FEATURED COMPONENTS
First time here? Check out the FAQ!
hi,
I have the following code
contenido.zul
<window border="none" apply="org.zkoss.bind.BindComposer"
viewModel="@id('vmin') @init('org.demo.InstruccionDlg')" width="80%" height="100%">
<borderlayout height="100%">
<center autoscroll="true" >
<label value="hola">
</center>
</borderlayout>
</window>
principal.zul
<borderlayout apply="org.zkoss.bind.BindComposer" viewModel="@id('vm') @init('org.demo.Principal')">
<north>
<include src="navbar.zul"/>
</north>
<center>
<include src="contenido.zul"/>
</center>
</borderlayout>
But contenido.zul not shown unless you step height = "400px", but not from height = "100%".
I have searched for information about it but no solution. Working with ZK 7.0.3 CE
Thanks for any suggestions.
Hi,
Try vflex="1"
Greetz chill.
Hello
I also have the same problem. here is the layout
<zk xmlns:n="native">
<window id="windowOuterMain" width="100%" height="100%"
border="none" sclass="outerwin" ctrlKeys="#f12#f11#f10#f2#f9"
onClientInfo="@command('updateClientInfo', width=event.desktopWidth, height=event.desktopHeight, orientation=event.orientation)"
apply="org.zkoss.bind.BindComposer"
viewModel="@id('vm') @init('com.product.webapp.main.MainVM')">
<include src="navbar.zul" />
<hlayout id="main" spacing="0">
<include id="sidebar" src="sidebar.zul" />
<vlayout spacing="0" hflex="1">
<include src="breadcrumbs.zul" />
<borderlayout id="mainlayout" height="100%">
<center id="center" autoscroll="false"
border="none">
<div id="screeensdiv"></div>
</center>
<south border="none" size="6%">
<div align="center">
<image width="50px"
src="/images/medxlogo.png" />
<label
value="Copyright © 2012 MedX Group Inc All Rights Reserved"
sclass="screenheaderlabel" />
</div>
</south>
</borderlayout>
</vlayout>
</hlayout>
</window>
</zk>
It works only when i put height in pixels for borderlayout. It never works for 100%
Hello
I also have the same problem with the height of the borderlayout.
Here is the page that calls the include.
<zk>
<window border="normal" apply="pkg$.TestComposer" width="100%" height="100%">
<label value="You are seeing index.zul content." />
<include src="borderlayout.zul"/>
</window>
</zk>
Here is the borderlayout.zul
<window border="none" apply="org.zkoss.bind.BindComposer" width="100%" height="100%">
<borderlayout vflex="1" hflex="1">
<center autoscroll="true">
<div>
<label value="You are seeing borderlayout.zul content." />
</div>
</center>
</borderlayout>
</window>
When i inspected the element, the height of the bordelayout was 0px. It doesn't work having neither with vflex="1" or height="100%" on the borderlayout.
Please make a new question in stead of polluting older questions. You can refer to this question in your new question.
chillworld ( 2015-05-26 17:49:31 +0800 )editAsked: 2014-09-19 00:10:58 +0800
Seen: 77 times
Last updated: May 26 '15
thank you very much Greetz
andresmq ( 2014-09-19 16:52:16 +0800 )edit