0

filedownload and borderlayout scrollbar problem

asked 2012-06-27 08:22:50 +0800

xeridia gravatar image xeridia
47 1

Hi,

When a download is started automatically creates a blank space below the "BorderLayout".
This causes the scrollbar disappears from the "center" component.

This is the code I'm using

<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/WEB-INF/jsp/common/taglibs.jsp" %>
<%@ include file="/WEB-INF/jsp/common/paths.jsp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<%=request.getLocale().getLanguage()%>" lang="<%=request.getLocale().getLanguage()%>">
<head>	
</head>

<body class="default">
<z:page id="baselayout">
	<z:borderlayout>

		<%-- HEADER --%>
		<z:north>
			<z:div style="background: blue;">north 1</z:div>
		</z:north>
		
		<%-- SIDEBAR --%>
		<z:west>
			<z:div style="background: green;">west</z:div>
		</z:west>
		
		<%-- MAIN --%>			
		<z:center autoscroll="true" flex="true">
			<z:div style="background: yellow;">
				<z:button label="Download sun.jpg">
					<z:attribute name="onClick">
					Filedownload.save("/resources/img/logo.png", null);
					</z:attribute>
				</z:button>
				
				<z:div style="height: 2000px;">test</z:div>
			</z:div>
		</z:center>
		
		<%-- FOOTER --%>
		<z:south>
			<z:div style="background: red;">south</z:div>
		</z:south>
	</z:borderlayout>
</z:page>
</body>
</html>

Thanks in advance

delete flag offensive retag edit
Be the first one to reply this discussion!
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: 2012-06-27 08:22:50 +0800

Seen: 90 times

Last updated: Jun 27 '12

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