fix(Calendar): subtitle not updated in some cases (#6723)
This commit is contained in:
@@ -90,11 +90,14 @@ export default createComponent({
|
||||
},
|
||||
},
|
||||
|
||||
mounted() {
|
||||
this.height = this.$el.getBoundingClientRect().height;
|
||||
},
|
||||
|
||||
methods: {
|
||||
getHeight() {
|
||||
if (!this.height) {
|
||||
this.height = this.$el.getBoundingClientRect().height;
|
||||
}
|
||||
return this.height;
|
||||
},
|
||||
|
||||
scrollIntoView() {
|
||||
if (this.showSubtitle) {
|
||||
this.$refs.days.scrollIntoView();
|
||||
|
||||
Reference in New Issue
Block a user