fix card expand negative margin

This commit is contained in:
Marcos Moura 2016-12-23 14:11:16 -02:00
parent 0e3b43aec1
commit a3a84259e3

View file

@ -18,15 +18,17 @@
}
},
mounted() {
this.trigger = this.$el.querySelector('[md-expand-trigger]');
this.content = this.$el.querySelector('.md-card-content');
window.setTimeout(() => {
this.trigger = this.$el.querySelector('[md-expand-trigger]');
this.content = this.$el.querySelector('.md-card-content');
if (this.content) {
this.setContentMargin();
if (this.content) {
this.setContentMargin();
this.trigger.addEventListener('click', this.toggle);
window.addEventListener('resize', this.onWindowResize);
}
this.trigger.addEventListener('click', this.toggle);
window.addEventListener('resize', this.onWindowResize);
}
}, 200);
},
destroyed() {
if (this.content) {