diff options
-rw-r--r-- | views/calendar/qml/DateSelector.qml | 5 | ||||
-rw-r--r-- | views/calendar/qml/View.qml | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/views/calendar/qml/DateSelector.qml b/views/calendar/qml/DateSelector.qml index 890a1a8b..bc297505 100644 --- a/views/calendar/qml/DateSelector.qml +++ b/views/calendar/qml/DateSelector.qml | |||
@@ -73,6 +73,11 @@ Column { | |||
73 | 73 | ||
74 | MonthGrid { | 74 | MonthGrid { |
75 | id: grid | 75 | id: grid |
76 | anchors { | ||
77 | left: parent.left | ||
78 | right: parent.right | ||
79 | } | ||
80 | |||
76 | month: root.selectedDate.getMonth() | 81 | month: root.selectedDate.getMonth() |
77 | year: root.selectedDate.getFullYear() | 82 | year: root.selectedDate.getFullYear() |
78 | locale: Qt.locale() | 83 | locale: Qt.locale() |
diff --git a/views/calendar/qml/View.qml b/views/calendar/qml/View.qml index 529f165f..05032af9 100644 --- a/views/calendar/qml/View.qml +++ b/views/calendar/qml/View.qml | |||
@@ -106,6 +106,11 @@ RowLayout { | |||
106 | 106 | ||
107 | DateSelector { | 107 | DateSelector { |
108 | id: dateSelector | 108 | id: dateSelector |
109 | anchors { | ||
110 | left: parent.left | ||
111 | right: parent.right | ||
112 | rightMargin: Kube.Units.largeSpacing | ||
113 | } | ||
109 | selectedDate: root.selectedDate | 114 | selectedDate: root.selectedDate |
110 | onSelectedDateChanged: { | 115 | onSelectedDateChanged: { |
111 | root.selectedDate = getFirstDayOfWeek(dateSelector.selectedDate) | 116 | root.selectedDate = getFirstDayOfWeek(dateSelector.selectedDate) |