diff --git a/src/utility.js b/src/utility.js index 703644ab..9b51be91 100644 --- a/src/utility.js +++ b/src/utility.js @@ -212,8 +212,20 @@ function countFlags(value) { * positioned at 0,0. */ function activateChromeZoomedOffsetPatch() { + var style; if (/Chrome\/[.0-9]*/.test(navigator.userAgent)) { session.chromePatchRefElement = $(document.body); + style = { + top: 0, + left: 0, + position: 'absolute', + display: 'hidden', + height: '1px', + margin: 0, + width: '1px', + zIndex: -1 + }; + session.chromePatchRefElement = $('
').css(style).appendTo($(document.body)); } }