Fix Media List in CW Content (#6099)
This commit is contained in:
parent
fa75b40dfd
commit
d02e14cb94
2 changed files with 12 additions and 6 deletions
|
|
@ -34,9 +34,7 @@ export default Vue.extend({
|
|||
default: false
|
||||
},
|
||||
// specify the parent element
|
||||
parentElement: {
|
||||
type: Object
|
||||
}
|
||||
parentElement: {}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
|
@ -69,7 +67,7 @@ export default Vue.extend({
|
|||
|
||||
if (this.$refs.gridOuter) {
|
||||
let height = 287;
|
||||
const parent = this.$props.parentElement || this.$parent.$el;
|
||||
const parent = this.parentElement || this.$parent.$el;
|
||||
|
||||
if (this.$refs.gridOuter.clientHeight) {
|
||||
height = this.$refs.gridOuter.clientHeight;
|
||||
|
|
@ -83,6 +81,11 @@ export default Vue.extend({
|
|||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
parentElement() {
|
||||
this.size();
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue