filedownload and borderlayout scrollbar problem

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

xeridia gravatar image xeridia
47 1


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"
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<%=request.getLocale().getLanguage()%>" lang="<%=request.getLocale().getLanguage()%>">

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

		<%-- HEADER --%>
			<z:div style="background: blue;">north 1</z:div>
		<%-- SIDEBAR --%>
			<z:div style="background: green;">west</z:div>
		<%-- 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:div style="height: 2000px;">test</z:div>
		<%-- FOOTER --%>
			<z:div style="background: red;">south</z:div>

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




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