intel-screenbot

An Ingress Intel Map Bot for Hangoutsbot
git clone git://archive.git.mtrnord.blog/MTRNord/intel-screenbot.git
Log | Files | Refs | README | LICENSE

commit e34824bbd503f049d6fb2c475928901669f21965
parent f2d4666a9f1255064455e37622a4acb254c08877
Author: Marcel <MTRNord@users.noreply.github.com>
Date:   Sat, 31 Dec 2016 22:38:17 +0100

try fixing height
Diffstat:
Mscreencap.js | 12++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/screencap.js b/screencap.js @@ -238,11 +238,15 @@ function portalinfoScreen(){ return document.querySelector('#sidebar').getBoundingClientRect(); }); + var elementHeight = page.evaluate(function(){ + return document.querySelector('#sidebar').offsetHeight(); + }); + page.clipRect = { top: clipRect.top, left: clipRect.left, width: clipRect.width, - height: clipRect.height + height: elementHeight } setTimeout(function() {s(filepath)}, "1000"); }, @@ -251,11 +255,15 @@ function portalinfoScreen(){ return document.querySelector('#sidebar').getBoundingClientRect(); }); + var elementHeight = page.evaluate(function(){ + return document.querySelector('#sidebar').offsetHeight(); + }); + page.clipRect = { top: clipRect.top, left: clipRect.left, width: clipRect.width, - height: clipRect.height + height: elementHeight } setTimeout(function() {s(filepath)}, "1000"); }