diff --git a/js/element-picker.js b/js/element-picker.js
index e018ae83c..e3a01eab1 100644
--- a/js/element-picker.js
+++ b/js/element-picker.js
@@ -766,11 +766,8 @@ var startPicker = function() {
svgRoot = document.createElementNS(svgns, 'svg');
svgRoot.innerHTML = '';
- var nullRect = { left: 0, top: 0, width: 0, height: 0 };
- var htmlRect = document.documentElement ? document.documentElement.getBoundingClientRect() : nullRect;
- var bodyRect = document.body ? document.body.getBoundingClientRect() : nullRect;
- var svgWidth = Math.max(htmlRect.width, bodyRect.width);
- var svgHeight = Math.max(htmlRect.height, bodyRect.height);
+ var svgWidth = document.documentElement.scrollWidth;
+ var svgHeight = document.documentElement.scrollHeight;
svgRoot.setAttribute('x', 0);
svgRoot.setAttribute('y', 0);
svgRoot.setAttribute('width', svgWidth);