Skip to content

Commit

Permalink
fix constant name
Browse files Browse the repository at this point in the history
  • Loading branch information
medilies committed Nov 23, 2023
1 parent adb2db7 commit fc87850
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/BrowsershotRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ public function render(Html $html, Css $css, Options $options, Config $config =
$this->options = $options;
$this->config = $config ?? $this->config;

[$paperWidth, $paperHeight] = $this->options->resolvePaperSize(LengthUnit::MILLIMETER_UNIT);
[$paperWidth, $paperHeight] = $this->options->resolvePaperSize(LengthUnit::MILLIMETER);

$margin = Margin::fromOptions($this->options)->allRawIn(LengthUnit::MILLIMETER_UNIT);
$margin = Margin::fromOptions($this->options)->allRawIn(LengthUnit::MILLIMETER);

$browsershot = Browsershot::html($this->html())
->newHeadless()
Expand Down

0 comments on commit fc87850

Please sign in to comment.