Fixed #4822 - Calendar responsiveness updates

This commit is contained in:
tugcekucukoglu 2023-11-15 13:25:37 +03:00
parent af504277ba
commit 9bef643b0d
60 changed files with 185 additions and 286 deletions

View file

@ -538,7 +538,8 @@ export default {
pm: null,
focused: false,
overlayVisible: false,
currentView: this.view
currentView: this.view,
queryMatches: false
};
},
watch: {
@ -588,6 +589,13 @@ export default {
},
mounted() {
this.createResponsiveStyle();
const query = matchMedia(`(max-width: ${this.breakpoint})`);
this.queryMatches = query.matches;
query.addEventListener('change', () => {
this.queryMatches = query.matches;
});
if (this.inline) {
this.overlay && this.overlay.setAttribute(this.attributeSelector, '');