Round width of buttons

They were getting rendered a bit weird if your pixel scale was not an integer (for me it's 1.25).
This commit is contained in:
Ghostkeeper 2018-12-18 13:55:12 +01:00
parent a181ffe79d
commit 279812e4ff
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276

View file

@ -1,4 +1,4 @@
// Copyright (c) 2016 Ultimaker B.V.
// Copyright (c) 2018 Ultimaker B.V.
// Cura is released under the terms of the LGPLv3 or higher.
import QtQuick 2.7
@ -91,7 +91,7 @@ UM.ManagementPage
Item
{
width: childrenRect.width + 2 * screenScaleFactor
width: Math.round(childrenRect.width + 2 * screenScaleFactor)
height: childrenRect.height
Button
{