Fix rounding issue in toolbox QML widget size

CURA-6006
This commit is contained in:
Lipu Fei 2018-12-10 14:37:44 +01:00
parent 861deaa9f7
commit 69744282e6
2 changed files with 3 additions and 3 deletions

View file

@ -14,8 +14,8 @@ Window
modality: Qt.ApplicationModal
flags: Qt.Dialog | Qt.CustomizeWindowHint | Qt.WindowTitleHint | Qt.WindowCloseButtonHint
width: 720 * screenScaleFactor
height: 640 * screenScaleFactor
width: Math.floor(720 * screenScaleFactor)
height: Math.floor(640 * screenScaleFactor)
minimumWidth: width
maximumWidth: minimumWidth
minimumHeight: height

View file

@ -38,7 +38,7 @@ Column
delegate: Loader
{
asynchronous: true
width: (grid.width - (grid.columns - 1) * grid.columnSpacing) / grid.columns
width: Math.round((grid.width - (grid.columns - 1) * grid.columnSpacing) / grid.columns)
height: UM.Theme.getSize("toolbox_thumbnail_small").height
source: "ToolboxDownloadsGridTile.qml"
}