Browse Source

Use rounding for width

Lipu Fei 6 years ago
parent
commit
6f911f9924
1 changed files with 1 additions and 1 deletions
  1. 1 1
      resources/qml/WelcomePages/WhatsNewContent.qml

+ 1 - 1
resources/qml/WelcomePages/WhatsNewContent.qml

@@ -35,7 +35,7 @@ Item
         anchors.topMargin: UM.Theme.getSize("welcome_pages_default_margin").height
         anchors.bottomMargin: UM.Theme.getSize("welcome_pages_default_margin").height
         anchors.horizontalCenter: parent.horizontalCenter
-        width: parent.width * 3 / 4
+        width: (parent.width * 3 / 4) | 0
 
         border.color: "#dfdfdf"
         border.width: 1