summaryrefslogtreecommitdiffstats
path: root/assets/script.js
diff options
context:
space:
mode:
Diffstat (limited to 'assets/script.js')
-rw-r--r--assets/script.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/assets/script.js b/assets/script.js
index b30305a48..fbae0417c 100644
--- a/assets/script.js
+++ b/assets/script.js
@@ -592,8 +592,12 @@ function measurePositions() {
}
// add an extra one to mark the top/bottom of the last message footer spacer
overlayTops[i] = "" + prevBodyBottom;
- overlayBottoms[i] = "" + document.body.offsetHeight;
-
+ 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;
window.mail.onWebContentGeometryChange(overlayTops, overlayBottoms);
}