diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-08-17 10:21:19 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-08-17 10:21:19 +0200 |
commit | 7ef07dd413a8719a96d3e79bf36cb8698478ada1 (patch) | |
tree | 7e00f5e7d1f3277bedf07a2234464475800e001b | |
parent | 1d5ca40f0a65fc2f6f8ae6c73cb84683504d362a (diff) | |
download | kube-7ef07dd413a8719a96d3e79bf36cb8698478ada1.tar.gz kube-7ef07dd413a8719a96d3e79bf36cb8698478ada1.zip |
Proper anchoring
-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) |