PluginProbe
MBE eShip / trunk
MBE eShip vtrunk
2.8.1 trunk 1.0.0 1.1.0 1.1.3 1.2.1 1.2.2 1.3.0 1.4.0 1.4.1 1.5.0 1.5.1 1.5.2 1.6.0 1.7.0 1.7.1 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.1.0 2.1.1 2.1.2 2.2.1 All 37 releases
mail-boxes-etc / lib / dompdf / src / Positioner / TableCell.php

TableCell.php in MBE eShip trunk, at lib/dompdf/src/Positioner/TableCell.php

30 lines 673 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @package dompdf
4 * @link https://github.com/dompdf/dompdf
5 * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
6 */
7 namespace Dompdf\Positioner;
8
9 use Dompdf\FrameDecorator\AbstractFrameDecorator;
10 use Dompdf\FrameDecorator\Table;
11
12 /**
13 * Positions table cells
14 *
15 * @package dompdf
16 */
17 class TableCell extends AbstractPositioner
18 {
19
20 /**
21 * @param AbstractFrameDecorator $frame
22 */
23 function position(AbstractFrameDecorator $frame): void
24 {
25 $table = Table::find_parent_table($frame);
26 $cellmap = $table->get_cellmap();
27 $frame->set_position($cellmap->get_frame_position($frame));
28 }
29 }
30