Fixed height QCalendar based on the height of the device (screen.height)
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user