|
@@ -238,8 +238,8 @@ export default {
|
|
|
methods: {
|
|
|
initResize(notEmit) {
|
|
|
this.parentElement = this.$el.parentNode;
|
|
|
- this.parentWidth = this.parentW ? this.parentW : this.parentElement.clientWidth;
|
|
|
- this.parentHeight = this.parentH ? this.parentH : this.parentElement.clientHeight;
|
|
|
+ this.parentWidth = this.parentW ? this.parentW : this.parentElement?.clientWidth;
|
|
|
+ this.parentHeight = this.parentH ? this.parentH : this.parentElement?.clientHeight;
|
|
|
if (this.layout.left || !this.layout.right) {
|
|
|
this.left = this.layout.left || 0;
|
|
|
} else {
|