Zunenonooo / dompdf

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

min_height & max_height not working #470

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
<div style="nin-height:100px">...</div>

What is the expected output? What do you see instead?
expected: 100px high div
seen: div shrunk to content

What version of dompdf are you using? What version of PHP? On what
operating system?
Trunk, Php 5.3.10, Centos

Please provide the HTML source code you want to convert, or any additional
information.

will work on patch

Original issue reported on code.google.com by johngbel...@gmail.com on 24 Apr 2012 at 7:26

GoogleCodeExporter commented 8 years ago
This is the related discussion thread: 
http://groups.google.com/group/dompdf/browse_thread/thread/206659b72d0e6bfc/3c0d
538cab3400c0?show_docid=3c0d538cab3400c0

Original comment by fabien.menager on 24 Apr 2012 at 8:19

GoogleCodeExporter commented 8 years ago
I have re-named _calculate_restricted_height() to _calculate_height() to be 
consistent with the width methods, and moved the max_height/min_height 
calculations to a new _calculate_restricted_height() method in Frame_Reflower. 
That way, other reflower classes can use the same method.

Original comment by johngbel...@gmail.com on 28 Apr 2012 at 8:28

Attachments:

GoogleCodeExporter commented 8 years ago
The 2 file block_frame_reflower.patch and frame_reflower.patch is same.
Please add the frame_reflower.patch file correctly.

Original comment by turbop....@gmail.com on 8 May 2012 at 10:12

GoogleCodeExporter commented 8 years ago
corrected file attached

Original comment by johngbel...@gmail.com on 15 May 2012 at 9:36

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by eclecticgeek on 24 May 2013 at 3:00