Tidy pane js

This commit is contained in:
Pete Richards 2018-08-15 16:47:48 -07:00
parent 91eefbfa7b
commit 3957fd619a

View File

@ -187,17 +187,12 @@ export default {
} }
}, },
beforeMount() { beforeMount() {
console.log('this.$parent', this.$parent, this.$parent.type);
this.type = this.$parent.type;
},
mounted() {
this.type = this.$parent.type; this.type = this.$parent.type;
if (this.type === 'horizontal') { if (this.type === 'horizontal') {
this.styleProp = 'width'; this.styleProp = 'width';
} else { } else {
this.styleProp = 'height'; this.styleProp = 'height';
} }
this.trackSize();
}, },
methods: { methods: {
toggleCollapse: function () { toggleCollapse: function () {