From 228ebeab0621ed2e439f793146a560463c236388 Mon Sep 17 00:00:00 2001 From: Dylan Powers Date: Tue, 6 Jan 2015 16:37:46 -0800 Subject: [PATCH] Patch from https://github.com/Polymer/core-dropdown/pull/14 This brings a fix to https://github.com/Polymer/core-dropdown/issues/11 --- lib/src/core-dropdown/core-dropdown.html | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/lib/src/core-dropdown/core-dropdown.html b/lib/src/core-dropdown/core-dropdown.html index fdd9fb7..2d1bf10 100644 --- a/lib/src/core-dropdown/core-dropdown.html +++ b/lib/src/core-dropdown/core-dropdown.html @@ -183,13 +183,16 @@ resetTargetDimensions: function() { var dims = this.dimensions; var style = this.target.style; - if (dims.position.h_by === this.localName) { - style[dims.position.h] = null; - dims.position.h_by = null; - } - if (dims.position.v_by === this.localName) { - style[dims.position.v] = null; - dims.position.v_by = null; + // Dims may be not define + if(dims) { + if (dims.position.h_by === this.localName) { + style[dims.position.h] = null; + dims.position.h_by = null; + } + if (dims.position.v_by === this.localName) { + style[dims.position.v] = null; + dims.position.v_by = null; + } } this.super(); },