PluginProbe
WCPOS – Point of Sale (POS) plugin for WooCommerce / 1.10.18
WCPOS – Point of Sale (POS) plugin for WooCommerce v1.10.18
1.10.20 1.10.19 1.10.18 1.10.17 1.10.16 1.10.15 1.10.13 1.10.14 1.10.12 1.10.11 1.10.10 1.10.9 1.10.8 untagged-3d9b7ccddc54df87c672 1.10.7 1.10.6 1.10.5 1.10.3 1.10.4 1.10.2 1.10.1 1.10.0 1.9.17 1.9.15 1.9.16 All 164 releases
woocommerce-pos / vendor_prefixed / dompdf / dompdf / src / Positioner / TableRow.php

TableRow.php in WCPOS – Point of Sale (POS) plugin for WooCommerce 1.10.18, at vendor_prefixed/dompdf/dompdf/src/Positioner/TableRow.php

33 lines 772 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * @package dompdf
5 * @link https://github.com/dompdf/dompdf
6 * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
7 */
8 namespace WCPOS\Vendor\Dompdf\Positioner;
9
10 use WCPOS\Vendor\Dompdf\FrameDecorator\AbstractFrameDecorator;
11 /**
12 * Positions table rows
13 *
14 * @package dompdf
15 */
16 class TableRow extends AbstractPositioner
17 {
18 /**
19 * @param AbstractFrameDecorator $frame
20 */
21 function position(AbstractFrameDecorator $frame) : void
22 {
23 $cb = $frame->get_containing_block();
24 $p = $frame->get_prev_sibling();
25 if ($p) {
26 $y = $p->get_position("y") + $p->get_margin_height();
27 } else {
28 $y = $cb["y"];
29 }
30 $frame->set_position($cb["x"], $y);
31 }
32 }
33