Skip to content

Commit 52daea0

Browse files
committed
Fixed screen size for capture.
1 parent 7f36d60 commit 52daea0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "capture-template",
3-
"version": "1.1.8",
3+
"version": "1.1.9",
44
"description": "This library is responsible for expanding a template web page and then capturing it PNG or PDF.",
55
"main": "build/index.js",
66
"types": "build/index.d.ts",

src/web-page-renderer.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ export class WebPageRenderer implements IWebPageRenderer {
109109
const nightmareOptions: any = {
110110
show: this.options && this.options.showBrowser,
111111
frame: this.options && this.options.showBrowser,
112+
height: 100000,
113+
width: 100000,
112114
maxHeight: 1000000,
113115
maxWidth: 1000000,
114116
waitTimeout: this.options && this.options.waitTimeout,

0 commit comments

Comments
 (0)