mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-07 22:13:58 -06:00
Fix rounding issue in toolbox QML widget size
CURA-6006
This commit is contained in:
parent
861deaa9f7
commit
69744282e6
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue