Browse Source

Added close button to changelog

Fixes Ultimaker/Cura#350
Jaime van Kessel 9 years ago
parent
commit
926ac69c71
1 changed files with 10 additions and 1 deletions
  1. 10 1
      plugins/ChangeLogPlugin/ChangeLog.qml

+ 10 - 1
plugins/ChangeLogPlugin/ChangeLog.qml

@@ -14,9 +14,11 @@ UM.Dialog
     width: 300 * Screen.devicePixelRatio;
     height: 500 * Screen.devicePixelRatio;
     title: "Changelog"
+
     ScrollView
     {
-        anchors.fill:parent
+        width: parent.width
+        height: parent.height - 25
         Text
         {
             text: manager.getChangeLogString()
@@ -24,4 +26,11 @@ UM.Dialog
             wrapMode: Text.Wrap;
         }
     }
+    Button
+    {
+        anchors.bottom:parent.bottom
+        text: "close"
+        onClicked: base.hide()
+        anchors.horizontalCenter: parent.horizontalCenter
+    }
 }