From b2e3b0f37afec1f1447060d7988fb271f46566c2 Mon Sep 17 00:00:00 2001 From: Anton Mirochnichenko Date: Wed, 26 Nov 2014 22:01:43 +0300 Subject: [PATCH] Update core-dropdown.html --- core-dropdown.html | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/core-dropdown.html b/core-dropdown.html index 6ed94f6..2d1bf10 100644 --- a/core-dropdown.html +++ b/core-dropdown.html @@ -183,16 +183,17 @@ 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; + // 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; + } } - if (dims.position.v_by === this.localName) { - style[dims.position.v] = null; - dims.position.v_by = null; - } - style.width = null; - style.height = null; this.super(); },