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();
},