-
FEATURED COMPONENTS
First time here? Check out the FAQ!
hi verybody
i work with my ZK project, i write a template with borderlayout, and a sub-template, and finally my real page. It orks fine in iexplorer, but,wwhen i try to view thepage in mozilla , it doesn't appear.
Please, show us the code.
hi everybody
i wrote in another thread the same problem, i found the reason in my code, i use a <div> to center the application into the browser, when i use these <div> mi page appears blank, but when i remove my page appear correctly, but oriented to left.
What is the correct way to center application. i have a template like this:
**********************************************************************************************************************************
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c" ?>
<?page title="${c:l('app.title')}" contentType="text/html;charset=UTF-8"?>
<zk>
<style>
.z-window-embedded-tl,.z-window-embedded-tr,.z-window-embedded-hl,.z-window-embedded-hr, .z-window-embedded-hm{
background-image:none;
background-color:#003399;
text-size: 1.0em;
}
.z-window-embedded-hl,.z-window-embedded-hr, .z-window-embedded-hm{
}
.z-window-embedded-header {
padding-top: 15px;
color: white;
font-size: 16px;
text-align: center;
text-vertical-align: middle;
height: 30px;
}
.z-window-highlighted-header {
font-weight: bold;
}
.z-window-modal-header {
font-weight: bold;
}
</style>
<div align="center"> <!-- THIS IS THE DIV THAT CAUSE PAGE BLANK -->
<borderlayout width="1024px">
<north
style="background-image:url(${c:encodeURL('/images/fondo_header2.jpg')});">
<include src="/content/headerLogin.zul" />
</north>
<west>
</west>
<center id="workareaContent" self="@{insert(workarea)}"
autoscroll="true" >
</center>
<east>
</east>
<south height="15px" style="background-color: #486B83;">
<include src="/content/footer.zul" />
</south>
</borderlayout>
</div>
</zk>
**********************************************************************************************************************************
please, some one can helpme.
best regards
Ovazquez,
Since you are defining a specific width for your <borderlayout>, you need to do the same for the height. Change your <borderlayout> to look something like this:
<borderlayout height="750px" width="1024px">
That should make it display properly.
Regards,
Todd
Asked: 2010-11-12 21:05:34 +0800
Seen: 663 times
Last updated: Feb 22 '11