We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1f9f7f commit ac282c0Copy full SHA for ac282c0
src/Browser/Casper.php
@@ -47,6 +47,22 @@ public function setDebug($debug)
47
$this->_debug = $debug;
48
return $this;
49
}
50
+
51
+ public function setViewPort($width, $height)
52
+ {
53
54
+ $fragment =<<<FRAGMENT
55
+casper.then(function () {
56
+ this.viewport($width, $height);
57
+});
58
59
+FRAGMENT;
60
61
+ $this->_script .= $fragment;
62
63
+ return $this;
64
+ }
65
66
67
/**
68
*
0 commit comments