forked from teampoltergeist/poltergeist
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Render full window size if document has no height
When rendering a screenshot with `:full => true` on a document which has a height of zero, the call fails silently with no screenshot being created. This situation can occur with pages that use absolute or fixed positioning for all content, for example. Changed to use the `documentElement`'s `clientHeight` & `clientWidth` as a fallback, which will result in screenshots the size of the viewport in that case.
- Loading branch information
1 parent
1f0c785
commit 8e90854
Showing
5 changed files
with
22 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<!DOCTYPE html> | ||
<body style="margin: 0; padding: 0;"> | ||
<div style="position: fixed"> | ||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> | ||
</div> | ||
</body> |