diff options
author | Andrew Sapperstein <asapperstein@google.com> | 2014-06-18 17:22:49 -0700 |
---|---|---|
committer | Andrew Sapperstein <asapperstein@google.com> | 2014-06-19 20:35:08 -0700 |
commit | 59ccec3db4710f2aea6a4a9a30160ad19331367d (patch) | |
tree | ad68ee7bc039a1aae2f95e09f7f6bac57419628f /assets | |
parent | 7f95fb8832fd98dcfe7eda35c6494095333605a7 (diff) | |
download | android_packages_apps_UnifiedEmail-59ccec3db4710f2aea6a4a9a30160ad19331367d.tar.gz android_packages_apps_UnifiedEmail-59ccec3db4710f2aea6a4a9a30160ad19331367d.tar.bz2 android_packages_apps_UnifiedEmail-59ccec3db4710f2aea6a4a9a30160ad19331367d.zip |
Remove borders/cards from conversation view.
b/15595931
Change-Id: I51b5ce1d9387d6354d421b0e399a2003c6e84c54
Diffstat (limited to 'assets')
-rw-r--r-- | assets/script.js | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/assets/script.js b/assets/script.js index d61f9888e..b79e522e8 100644 --- a/assets/script.js +++ b/assets/script.js @@ -679,8 +679,7 @@ function setSpacerHeight(spacer, spacerHeight) { measurePositions(); } -function setMessageBodyVisible(messageDomId, isVisible, spacerHeight, - topBorderHeight, bottomBorderHeight) { +function setMessageBodyVisible(messageDomId, isVisible, spacerHeight) { var i, len; var visibility = isVisible ? "block" : "none"; var messageDiv = document.querySelector("#" + messageDomId); @@ -690,26 +689,6 @@ function setMessageBodyVisible(messageDomId, isVisible, spacerHeight, return; } - // if the top border has changed, update the height of its spacer - if (topBorderHeight > 0) { - var border = messageDiv.previousElementSibling; - if (!border) { - console.log("can't set spacer for top border"); - return; - } - border.style.height = topBorderHeight + "px"; - } - - // if the bottom border has changed, update the height of its spacer - if (bottomBorderHeight > 0) { - var border = messageDiv.nextElementSibling; - if (!border) { - console.log("can't set spacer for bottom border"); - return; - } - border.style.height = bottomBorderHeight + "px"; - } - messageDiv.classList.toggle("expanded"); for (i = 0, len = collapsibleDivs.length; i < len; i++) { collapsibleDivs[i].style.display = visibility; |