amitdivya / dompdf

Automatically exported from code.google.com/p/dompdf
0 stars 0 forks source link

large number of floated elements causes layout overload #495

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm under a bit of a time crunch, so any help is appreciated.

Okay..  I've included both of the main files that are needed to see what's 
going on.  Import the file ImportMe into MySql and then we can get started. 
Then use Apache (or whatever) to run export.php

As you'll see, the pdf is fine until it hits the middle of the second page.  To 
my understanding, there is no reason for this to happen!  Oh btw, you'll have 
to turn on CSS_FLOAT to get this to look right.  I tried just echoing out the 
$File variable (with out rendering) and it looks fine, the html output comes 
out perfectly.  This is why I think the numbers/coding i used to make new rows 
and new pages is good.  It has to be something with dompdf, it has to be!  I 
also have a p tag in there.. but go ahead and try taking it out, it still does 
the same thing except without the style that that particular p tag brings.  

Any help would be severely appreciated!  My boss needs Avery5160 pdfs and he 
doesn't care how it happens.  It has taken me a long time to even make it look 
as good as it does, but it's still not there.

Help please!

Original issue reported on code.google.com by kte...@megabytes.co on 5 Jun 2012 at 7:03

Attachments:

GoogleCodeExporter commented 9 years ago
Another note:  My current theory is that it's ignoring the div tags after a 
while because it takes the <div class="label"> tag to make a new label to the 
right of the old label...BUT (to contradict myself) it IS actually making new 
labels, it's just putting one right on top of another, moving to a new line, 
then it does it again.  It's very weird because in programming if it works in 
the beginning and you don't change anything, it should work in the end... I 
thought anyway.

Original comment by kte...@megabytes.co on 5 Jun 2012 at 7:09

GoogleCodeExporter commented 9 years ago
Appears to be a float overload problem. Discussed in the support forum here:
https://groups.google.com/d/topic/dompdf/el-iVMZtSL0/discussion

A similar issue was discussed in another thread:
https://groups.google.com/d/topic/dompdf/mHuul-uzhZE/discussion

Since float support is still in development I'm going to merge into that issue.

Original comment by eclecticgeek on 6 Jun 2012 at 7:55

GoogleCodeExporter commented 9 years ago
Issue 498 has been merged into this issue.

Original comment by eclecticgeek on 9 Jun 2012 at 1:59

GoogleCodeExporter commented 9 years ago
FYI, you could also try changing from `float: left` to `display: 
inline-block;`. The result is very similar visually for your document, but you 
won't run into the layout overload issue.

Original comment by eclecticgeek on 9 Jun 2012 at 2:05

GoogleCodeExporter commented 9 years ago

Original comment by eclecticgeek on 30 May 2013 at 5:16