REDROOM
PHP 8.3.30
Path:
Logout
Edit File
Size: 2.64 KB
Close
/home/getspomw/itechservicellc.com/vendor/dompdf/dompdf/src/FrameDecorator/TableCell.php
Text
Base64
<?php /** * @package dompdf * @link https://github.com/dompdf/dompdf * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License */ namespace Dompdf\FrameDecorator; use Dompdf\Dompdf; use Dompdf\Frame; use Dompdf\FrameDecorator\Block as BlockFrameDecorator; /** * Decorates table cells for layout * * @package dompdf */ class TableCell extends BlockFrameDecorator { /** * @var float */ protected $content_height; /** * TableCell constructor. * @param Frame $frame * @param Dompdf $dompdf */ function __construct(Frame $frame, Dompdf $dompdf) { parent::__construct($frame, $dompdf); $this->content_height = 0.0; } function reset() { parent::reset(); $this->content_height = 0.0; } /** * @return float */ public function get_content_height(): float { return $this->content_height; } /** * @param float $height */ public function set_content_height(float $height): void { $this->content_height = $height; } /** * @param float $height */ public function set_cell_height(float $height): void { $style = $this->get_style(); $v_space = (float)$style->length_in_pt( [ $style->margin_top, $style->padding_top, $style->border_top_width, $style->border_bottom_width, $style->padding_bottom, $style->margin_bottom ], (float)$style->length_in_pt($style->height) ); $new_height = $height - $v_space; $style->set_used("height", $new_height); if ($new_height > $this->content_height) { $y_offset = 0; // Adjust our vertical alignment switch ($style->vertical_align) { default: case "baseline": // FIXME: this isn't right case "top": // Don't need to do anything return; case "middle": $y_offset = ($new_height - $this->content_height) / 2; break; case "bottom": $y_offset = $new_height - $this->content_height; break; } if ($y_offset) { // Move our children foreach ($this->get_line_boxes() as $line) { foreach ($line->get_frames() as $frame) { $frame->move(0, $y_offset); } } } } } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 13
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
AbstractFrameDecorator.php
21.99 KB
lrw-r--r--
2025-10-28 20:22:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Block.php
5.98 KB
lrw-r--r--
2025-10-28 20:22:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Image.php
2.98 KB
lrw-r--r--
2025-10-28 20:22:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Inline.php
3.74 KB
lrw-r--r--
2025-10-28 20:22:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ListBullet.php
2.76 KB
lrw-r--r--
2025-10-28 20:22:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ListBulletImage.php
2.71 KB
lrw-r--r--
2025-10-28 20:22:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
NullFrameDecorator.php
726 B
lrw-r--r--
2025-10-28 20:22:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Page.php
24.44 KB
lrw-r--r--
2025-10-28 20:22:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Table.php
9.83 KB
lrw-r--r--
2025-10-28 20:22:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
TableCell.php
2.64 KB
lrw-r--r--
2025-10-28 20:22:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
TableRow.php
571 B
lrw-r--r--
2025-10-28 20:22:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
TableRowGroup.php
2.00 KB
lrw-r--r--
2025-10-28 20:22:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Text.php
6.81 KB
lrw-r--r--
2025-10-28 20:22:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).