Fixed height QCalendar based on the height of the device (screen.height)

This commit is contained in:
Paolo Arena
2019-10-30 17:36:10 +01:00
parent f288ace2a7
commit eea814fb43
8 changed files with 60 additions and 21 deletions

View File

@@ -252,7 +252,14 @@ export default class CEventsCalendar extends Vue {
}
get dayHeight() {
return CalendarStore.state.dayHeight
if (Screen.height < 500)
return 100
if (Screen.height < 700)
return 110
else if (Screen.height < 800)
return 120
else
return 140
}
get theme() {
@@ -997,4 +1004,8 @@ export default class CEventsCalendar extends Vue {
return (new Date(myevent.dateTimeEnd) >= datenow)
}
public getTitleEv(event: IEvents) {
return (!!event.short_tit) ? event.short_tit : event.title
}
}