summaryrefslogtreecommitdiffstats
path: root/assets
diff options
context:
space:
mode:
authorAndrew Sapperstein <asapperstein@google.com>2013-08-20 17:54:57 -0700
committerAndrew Sapperstein <asapperstein@google.com>2013-08-20 17:54:57 -0700
commite4e1c49e550171ae44e94910d6b030e866436607 (patch)
treeb4bd86dacfb7d9e37317c074a72bf0aea51020a3 /assets
parente6bd10e6e81095924eeaf36ba1ffc4d116fdb9c3 (diff)
downloadandroid_packages_apps_UnifiedEmail-e4e1c49e550171ae44e94910d6b030e866436607.tar.gz
android_packages_apps_UnifiedEmail-e4e1c49e550171ae44e94910d6b030e866436607.tar.bz2
android_packages_apps_UnifiedEmail-e4e1c49e550171ae44e94910d6b030e866436607.zip
Use documentElement.scrollHeight unconditionally.
Sometimes the other heights are too big. Change-Id: Ib60321a0afece97f4024765f8682f8fca7c1e484
Diffstat (limited to 'assets')
-rw-r--r--assets/script.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/assets/script.js b/assets/script.js
index fbae0417c..0449d0082 100644
--- a/assets/script.js
+++ b/assets/script.js
@@ -592,12 +592,8 @@ function measurePositions() {
}
// add an extra one to mark the top/bottom of the last message footer spacer
overlayTops[i] = "" + prevBodyBottom;
- var body = document.body,
- html = document.documentElement;
- // get the true height of the value - the max of 4 possibilities
- var height = Math.max(body.scrollHeight, body.offsetHeight,
- html.scrollHeight, html.offsetHeight);
- overlayBottoms[i] = "" + height;
+ overlayBottoms[i] = "" + document.documentElement.scrollHeight;
+
window.mail.onWebContentGeometryChange(overlayTops, overlayBottoms);
}