0

Page only displays if I minimize the window first

asked 2011-11-11 01:04:27 +0800

dorr gravatar image dorr
126 4

I've got a page that will only display the components if I minimize the window first. Good Lawd! What's up with that? I'm using 5.0.9

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2011-11-11 01:34:40 +0800

matthewgo gravatar image matthewgo
375

Hi dorr,
Can you provide a sample code to reproduce the issue?

link publish delete flag offensive edit

answered 2011-11-11 01:37:11 +0800

dorr gravatar image dorr
126 4

updated 2011-11-11 01:41:52 +0800


<?xml version="1.0" encoding="UTF-8"?>
<?page title="Customer Details" contentType="text/html;charset=UTF-8"?>
<zk>
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
<window id="win_CustDetails" width="100%" border="normal" apply="${customerController}" height="400px">	
	<style src="/css/zk/zk.css"/>			   	  				
	<borderlayout height="6%" >
		<west width="100%" border="none">
			<groupbox> 
				<grid>			
					<rows>
						<row><label value="Company:"/>
							 <listbox id="companyListBox" mold="select" rows="1" tooltiptext="Select a Company"/>
							 <label value="Customer Id:"/>
							 <label id="customerId"/>
						</row>							
					</rows>
				</grid>
			</groupbox>	
		</west>
		<east width="50%" border="none">					
			<div class="messageTxt">
				<label id="successMsg"/>
			</div>								
		</east>
	</borderlayout>																								
	<borderlayout height="75%">
		<west width="50%" border="none">
			<borderlayout>
				<north height="50%" border="0">											
					<groupbox>	   	  		
					  	<caption width="100%" label="Customer Name References" zclass="caption"/>					  	
					  	<borderlayout height="150px">			  						  	
					  		<center>		
							  	<listbox id="custNameListBox" vflex="true" style="overflow:auto">	  	
									<listhead sizable="true">
										<listheader label="Action" width="80px"/>												
										<listheader label="Type" sort="auto(nameTypeCde)"/>									
										<listheader label="Name" sort="auto(lastNameTxt)"/>		
										<listheader label="Position" sort="auto(namePositionCde)"/>								
									</listhead>				
								</listbox>
							</center>
						</borderlayout>
						<div align="center">
							<hbox>														
								<button id="addName"  label="Add Name"></button>												
							</hbox>
						</div>
					</groupbox>
				</north>
				<south height="50%" border="none"> 
					<groupbox>	   	  		
					  	<caption width="100%" label="Customer Defaults" zclass="caption"/>					  	
					  	<borderlayout height="150px">			  						  	
					  		<center>	
							  	<listbox id="custDefaultsListBox" vflex="true" style="overflow:auto">	  	
									<listhead sizable="true">
										<listheader label="Action" width="80px"/>												
										<listheader label="Type" sort="auto(defaultTypeCde)"/>									
										<listheader label="Default Value" sort="auto(typeCdeDescTxt)"/>								
									</listhead>				
								</listbox>
							</center>
						</borderlayout>
						<div align="center">
							<hbox>														
								<button id="addDefault"  label="Add Default"></button>												
							</hbox>
						</div>
					</groupbox>
				</south>
			</borderlayout>
		</west>		
		<east width="50%" border="none">
			<borderlayout height="100%">
				<north height="40%" border="0">
					<groupbox>	   	  	
						<caption width="100%" label="Notes" zclass="caption"/>
						<borderlayout height="130px">			  						  	
					  		<center border="none">				  	
							  	<listbox id="custNotesListBox" vflex="true" style="overflow:auto">	  	
									<listhead sizable="true">
										<listheader label="Action" width="80px"/>			
										<listheader label="Date" width="90px" />															
										<listheader label="Type" width="150px" />
										<listheader label="Note"/>								
									</listhead>				
								</listbox>
							</center>
						</borderlayout>
						<div align="center">
								<hbox>														
									<button id="addNote"  label="Add Note"></button>												
								</hbox>
						</div>
					</groupbox>
				</north>
				<center border="none">
					<groupbox>
						<caption width="100%" label="Financial Log" zclass="caption"/>								
						<borderlayout height="150px">			  						  	
					  		<center>
								<listbox height="150px" id="financialLogListBox" style="overflow:auto">	  	
									<listhead sizable="true">
										<listheader label="Action" width="80px"/>																		
										<listheader label="Type" width="200px" />																	
									</listhead>				
								</listbox>
							</center>
						</borderlayout>																							
					</groupbox>
				</center>
				<south border="none" height="90px">
					<groupbox>
						<caption width="100%" label="Audit Information" zclass="caption"/>
						<grid>												
							<rows>
								<row>	
									<label value="Created:"/><label id="createUser" /><label id="createDate"/>
								</row>
								<row>
									<label value="Update:"/><label id="updateUser" /><label id="updateDate"/>
								</row>
							</rows>
						</grid>
					</groupbox>
				</south>
			</borderlayout>						
		</east>									
	</borderlayout>
	<div align="center">
		<hbox>														
			<button id="Save"   label="Save"></button>
			<button id="cancel" label="Cancel"></button>
			<label id="createId" visible="false"/>								
		</hbox>
	</div>	
	<groupbox>
		<listbox id="errorListBox" mold="paging" pageSize="5" visible="false">
			<listhead sizable="true" zclass="errorList">
				<listheader label="Error Field"/>
				<listheader label="Error Message"/>
			</listhead>
		</listbox>							
	</groupbox>
</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: 2011-11-11 01:04:27 +0800

Seen: 196 times

Last updated: Nov 11 '11

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