summaryrefslogtreecommitdiffstats
path: root/assets
diff options
context:
space:
mode:
authorAndy Huang <ath@google.com>2013-04-22 11:44:56 -0700
committerAndy Huang <ath@google.com>2013-04-24 15:33:05 -0700
commit543e709c976ce954a072020ba6f75d12f41b1fba (patch)
tree1f3d18cbccf6fa37d540849bd7a1d53812964d7e /assets
parent799ca286843645c9ecc083fee994d36a836128b2 (diff)
downloadandroid_packages_apps_UnifiedEmail-543e709c976ce954a072020ba6f75d12f41b1fba.tar.gz
android_packages_apps_UnifiedEmail-543e709c976ce954a072020ba6f75d12f41b1fba.tar.bz2
android_packages_apps_UnifiedEmail-543e709c976ce954a072020ba6f75d12f41b1fba.zip
Fix table-layout emails, blacklist transforms by sender domain
Fix Twitter emails by overriding any 'table-layout' style when overriding table width to 'auto'. Add infrastructure to blacklist transforms by sender domain. Not actually used yet, because the Twitter email fix above is more generally useful and doesn't need to be special-cased. Bug: 8403536 Bug: 8685326 Change-Id: I9e72e8e6336c138674839724df57eef1f86a2d9b
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 4632b26ee..d822535f8 100644
--- a/assets/script.js
+++ b/assets/script.js
@@ -261,6 +261,8 @@ function transformContent(el, docWidth, elWidth) {
if (!done) {
// OK, that wasn't enough. Find tables with widths and override their widths.
+ // Also ensure that any use of 'table-layout: fixed' is negated, since using
+ // that with 'width: auto' causes erratic table width.
nodes = ENABLE_MUNGE_TABLES ? el.querySelectorAll("table") : [];
touched = addClassToElements(nodes, shouldMungeTable, "munged",
actionLog);