From 2ce090e4b377631253373a30b43e8f74429f4fb7 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Wed, 27 May 2015 22:48:15 -0700 Subject: [PATCH] Polymer 1.0: more info light - reposition post transition --- .../www_static/polymer/more-infos/more-info-light.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/frontend/www_static/polymer/more-infos/more-info-light.html b/homeassistant/components/frontend/www_static/polymer/more-infos/more-info-light.html index cbfa9ab7475..6ccfe296471 100644 --- a/homeassistant/components/frontend/www_static/polymer/more-infos/more-info-light.html +++ b/homeassistant/components/frontend/www_static/polymer/more-infos/more-info-light.html @@ -25,7 +25,7 @@ max-height: 0px; overflow: hidden; - transition: max-height .5s ease-in .3s; + transition: max-height .5s ease-in; } .has-brightness .brightness { @@ -79,6 +79,10 @@ if (newVal && newVal.state === 'on') { this.brightnessSliderValue = newVal.attributes.brightness; } + + this.debounce('more-info-light-animation-finish', function() { + this.fire('iron-resize'); + }.bind(this), 500); }, computeClassNames: function(stateObj) {