Skip to content

Commit

Permalink
Do not resize to zero (#858)
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints authored Jan 25, 2021
1 parent 99434fe commit dd3f15d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Browser.php
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ public function fitContent()

$html = $this->driver->findElement(WebDriverBy::tagName('html'));

if (! empty($html) && $html->getSize()->getWidth() >= 0 && $html->getSize()->getHeight() >= 0) {
if (! empty($html) && $html->getSize()->getWidth() > 0 && $html->getSize()->getHeight() > 0) {
$this->resize($html->getSize()->getWidth(), $html->getSize()->getHeight());
}

Expand Down

0 comments on commit dd3f15d

Please sign in to comment.