summaryrefslogtreecommitdiffstats
path: root/assets
diff options
context:
space:
mode:
authorAndy Huang <ath@google.com>2012-10-25 12:37:29 -0700
committerAndy Huang <ath@google.com>2012-10-25 14:48:44 -0700
commit91d782abc8015bd651fb5d0252b4d1ef369ec57b (patch)
tree01b519bd3a06f598b3ed3c1dce9f3208847cfd40 /assets
parent45a2b86a749b8a8e5702863f9e36eda5fb5d32b5 (diff)
downloadandroid_packages_apps_UnifiedEmail-91d782abc8015bd651fb5d0252b4d1ef369ec57b.tar.gz
android_packages_apps_UnifiedEmail-91d782abc8015bd651fb5d0252b4d1ef369ec57b.tar.bz2
android_packages_apps_UnifiedEmail-91d782abc8015bd651fb5d0252b4d1ef369ec57b.zip
fix headers drawing mismatched with bodies upon send on tablet
Two-pane layout runs a stray layout pass upon send (related to b/7409762). Prevent it from changing existing header positions until the new body geometry is determined. Fixing that exposed a separate issue, that conversations shorter than one screen tall would not draw the new header, ever. Add manual position refresh calls to newer JS calls that had previously depended on ContentSizeChangeListener. Bug: 7404104 Change-Id: I805fc9ab12878a95573316763986d84f89cfd2c0
Diffstat (limited to 'assets')
-rw-r--r--assets/script.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/assets/script.js b/assets/script.js
index 7ea607df3..0fa68c1cc 100644
--- a/assets/script.js
+++ b/assets/script.js
@@ -432,6 +432,7 @@ function replaceMessageBodies(messageIds) {
processQuotedText(msgContentDiv, true /* showElided */);
hideUnsafeImages([msgContentDiv]);
}
+ measurePositions();
}
// handle the special case of adding a single new message at the end of a conversation
@@ -442,6 +443,7 @@ function appendMessageHtml() {
document.body.appendChild(msg);
processQuotedText(msg, true /* showElided */);
hideUnsafeImages(msg.getElementsByClassName("mail-message-content"));
+ measurePositions();
}
// END Java->JavaScript handlers