Polymer 1.0: more info light - reposition post transition

This commit is contained in:
Paulus Schoutsen 2015-05-27 22:48:15 -07:00
parent 986b843e0d
commit 2ce090e4b3

View File

@ -25,7 +25,7 @@
max-height: 0px; max-height: 0px;
overflow: hidden; overflow: hidden;
transition: max-height .5s ease-in .3s; transition: max-height .5s ease-in;
} }
.has-brightness .brightness { .has-brightness .brightness {
@ -79,6 +79,10 @@
if (newVal && newVal.state === 'on') { if (newVal && newVal.state === 'on') {
this.brightnessSliderValue = newVal.attributes.brightness; this.brightnessSliderValue = newVal.attributes.brightness;
} }
this.debounce('more-info-light-animation-finish', function() {
this.fire('iron-resize');
}.bind(this), 500);
}, },
computeClassNames: function(stateObj) { computeClassNames: function(stateObj) {