Closed
Bug 343025
Opened 19 years ago
Closed 17 years ago
Absolutely positioned large block is printed to only one page
Categories
(Core :: Printing: Output, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: bugs, Unassigned)
Details
Attachments
(1 file)
480 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.0.2) Gecko/20060404 SeaMonkey/1.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.0.2) Gecko/20060404 SeaMonkey/1.0.1
Following code prints all to 2 pages and that is what is expected
<html>
<head>
<script>
function print() {
window.frames[0].focus();
window.frames[0].print();
}
function init() {
var str="<DIV>";
for(var i=0;i<100;i++) {
str+="<div>Print This "+i+"</div>";
}
str+="</DIV>";
window.frames[0].document.body.innerHTML=str+"</DIV>";
}
</script>
</head>
<body onload="init()">
<iframe width=700 height=300></iframe>
<button onclick="print()">print</button>
</body>
</html>
HOWEVER, following which exactly same as above but only the containing div is absolutely positioned, prints only the first page.
<html>
<head>
<script>
function print() {
window.frames[0].focus();
window.frames[0].print();
}
function init() {
var str="<DIV style=\"position:absolute\">";
for(var i=0;i<100;i++) {
str+="<div>Print This "+i+"</div>";
}
str+="</DIV>";
window.frames[0].document.body.innerHTML=str+"</DIV>";
}
</script>
</head>
<body onload="init()">
<iframe width=700 height=300></iframe>
<button onclick="print()">print</button>
</body>
</html>
Who could have thought of that ;)?
Reproducible: Always
Reporter | ||
Updated•19 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → WORKSFORME
Comment 1•18 years ago
|
||
Reporter | ||
Updated•18 years ago
|
Status: RESOLVED → UNCONFIRMED
Resolution: WORKSFORME → ---
Was this fixed by bug 154892?
Comment 4•17 years ago
|
||
I can see the bug on branch, but not on trunk anymore, so this has become worksforme.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago → 17 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•