summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/controls/Private/HoverButton.qml2
-rw-r--r--src/controls/Styles/Base/CalendarStyle.qml6
2 files changed, 3 insertions, 5 deletions
diff --git a/src/controls/Private/HoverButton.qml b/src/controls/Private/HoverButton.qml
index 9d3ca713..1b79e087 100644
--- a/src/controls/Private/HoverButton.qml
+++ b/src/controls/Private/HoverButton.qml
@@ -65,8 +65,6 @@ Item {
width: implicitWidth/2
height: implicitHeight/2
anchors.centerIn: parent
- anchors.alignWhenCentered: true
- source: "images/leftanglearrow.png"
opacity: 0.6
}
diff --git a/src/controls/Styles/Base/CalendarStyle.qml b/src/controls/Styles/Base/CalendarStyle.qml
index 78a0eb9f..34f6eb05 100644
--- a/src/controls/Styles/Base/CalendarStyle.qml
+++ b/src/controls/Styles/Base/CalendarStyle.qml
@@ -190,9 +190,10 @@ Style {
}
HoverButton {
id: previousMonth
- anchors.left: parent.left
width: parent.height
- height: parent.height
+ height: width
+ anchors.verticalCenter: parent.verticalCenter
+ anchors.left: parent.left
source: "images/leftanglearrow.png"
onClicked: control.showPreviousMonth()
}
@@ -201,7 +202,6 @@ Style {
text: styleData.title
elide: Text.ElideRight
horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
font.pointSize: 14
anchors.verticalCenter: parent.verticalCenter
anchors.left: previousMonth.right