diff --git a/core-dropdown.html b/core-dropdown.html index d05c1b9..9f10f22 100644 --- a/core-dropdown.html +++ b/core-dropdown.html @@ -187,13 +187,15 @@ 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; + 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; + } } style.width = null; style.height = null;