Files
luos/thirdparty/html2ps_pdf/box.body.php
Paula Quispe 9eb7d6cac2 HOR-2689
2017-08-03 17:00:30 -04:00

38 lines
840 B
PHP

<?php
class BodyBox extends BlockBox {
function &create(&$root, &$pipeline) {
$box = new BodyBox();
$box->readCSS($pipeline->getCurrentCSSState());
$box->create_content($root, $pipeline);
return $box;
}
function get_bottom_background() {
return $this->get_bottom_margin();
}
function get_left_background() {
return $this->get_left_margin();
}
function get_right_background() {
return $this->get_right_margin();
}
function get_top_background() {
return $this->get_top_margin();
}
function reflow(&$parent, &$context) {
parent::reflow($parent, $context);
// Extend the body height to fit all contained floats
$float_bottom = $context->float_bottom();
if (!is_null($float_bottom)) {
$this->extend_height($float_bottom);
};
}
}
?>