summaryrefslogtreecommitdiffstats
path: root/assets
diff options
context:
space:
mode:
authorAndrew Sapperstein <asapperstein@google.com>2014-05-13 10:25:34 -0700
committerAndrew Sapperstein <asapperstein@google.com>2014-05-13 10:25:34 -0700
commit73bac140429627ef9111438d2358958d5d58638b (patch)
tree8a32c9b86dc6f87e241ec08c45ec26fae79207e5 /assets
parent59993643c7c1e5685fe64099a07e9d2b3330ae78 (diff)
downloadandroid_packages_apps_UnifiedEmail-73bac140429627ef9111438d2358958d5d58638b.tar.gz
android_packages_apps_UnifiedEmail-73bac140429627ef9111438d2358958d5d58638b.tar.bz2
android_packages_apps_UnifiedEmail-73bac140429627ef9111438d2358958d5d58638b.zip
Don't convert to strings only to convert to int.
Fixes b/14812974. Instead of converting (now) floats to strings for passing via javascript, just pass them directly as ints. Then we don't have to do any parsing. Change-Id: Iaab27e46b3c6875fee203de389119b835fd27261
Diffstat (limited to 'assets')
-rw-r--r--assets/script.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/assets/script.js b/assets/script.js
index b096c4b2c..d61f9888e 100644
--- a/assets/script.js
+++ b/assets/script.js
@@ -618,13 +618,13 @@ function measurePositions() {
expandedBody = expandedBodyDivs[i];
headerSpacer = expandedBody.previousElementSibling;
// addJavascriptInterface handler only supports string arrays
- overlayTops[i] = "" + prevBodyBottom;
- overlayBottoms[i] = "" + (getTotalOffset(headerSpacer).top + headerSpacer.offsetHeight);
+ overlayTops[i] = prevBodyBottom;
+ overlayBottoms[i] = (getTotalOffset(headerSpacer).top + headerSpacer.offsetHeight);
prevBodyBottom = getTotalOffset(expandedBody.nextElementSibling).top;
}
// add an extra one to mark the top/bottom of the last message footer spacer
- overlayTops[i] = "" + prevBodyBottom;
- overlayBottoms[i] = "" + document.documentElement.scrollHeight;
+ overlayTops[i] = prevBodyBottom;
+ overlayBottoms[i] = document.documentElement.scrollHeight;
window.mail.onWebContentGeometryChange(overlayTops, overlayBottoms);
}