Skip to content

Commit

Permalink
we can set element potision( top, left) (#80)
Browse files Browse the repository at this point in the history
* Set a Element Top,Left Position

we can set a element top,left position.

* we can set element top left positon
  • Loading branch information
pouu69 authored and MASNathan committed Dec 22, 2016
1 parent 037d99f commit e618a4a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Expand Up @@ -43,6 +43,13 @@ You can also set the browser dimensions
$screenCapture->setWidth(1200);
$screenCapture->setHeight(800);
```

you can set also DOM Element Position (top, left)
``` php
$screenCapture->setTop(100);
$screenCapture->setLeft(100);
```

This will output all the page including the content rendered beyond the setted dimensions (e.g.: all the scrollable content), if you want just the content inside those boudaries you need to clip the result
``` php
// You also need to set the width and height.
Expand Down

0 comments on commit e618a4a

Please sign in to comment.