diff options
author | Andy Huang <ath@google.com> | 2013-04-22 11:44:56 -0700 |
---|---|---|
committer | Andy Huang <ath@google.com> | 2013-04-24 15:33:05 -0700 |
commit | 543e709c976ce954a072020ba6f75d12f41b1fba (patch) | |
tree | 1f3d18cbccf6fa37d540849bd7a1d53812964d7e /assets | |
parent | 799ca286843645c9ecc083fee994d36a836128b2 (diff) | |
download | android_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.js | 2 |
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); |