Create space for the last card's menu on open.

This commit is contained in:
Oliver Hamlet
2014-12-31 01:22:51 +00:00
parent 7134ce47d4
commit 355484f2b1
2 changed files with 15 additions and 1 deletions
+5
View File
@@ -73,3 +73,8 @@ html /deep/ core-tooltip:hover:not([disabled])::shadow .core-tooltip {
opacity: 1;
transition-delay: 0s;
}
/* The max-height doesn't allow for expansion into newly-created scroll space. */
#main /deep/ paper-dropdown::shadow #scroller {
max-height: none !important;
}
+10 -1
View File
@@ -196,7 +196,8 @@ loot-clear-metadata
observe: {
'data.tags': 'onTagsChange',
'data.messages': 'onMessagesChange',
'data.userlist': 'onUserlistChange'
'data.userlist': 'onUserlistChange',
'data.isMenuOpen': 'onMenuToggle'
},
attached: function() {
@@ -272,6 +273,14 @@ loot-clear-metadata
}
},
onMenuToggle: function(oldValue, newValue) {
if (newValue) {
this.style.marginBottom = '190px';
} else {
this.style.marginBottom = '0';
}
},
getName: function() {
return this.getElementsByTagName('h1')[0].textContent;
},