mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07: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
|
modality: Qt.ApplicationModal
|
||||||
flags: Qt.Dialog | Qt.CustomizeWindowHint | Qt.WindowTitleHint | Qt.WindowCloseButtonHint
|
flags: Qt.Dialog | Qt.CustomizeWindowHint | Qt.WindowTitleHint | Qt.WindowCloseButtonHint
|
||||||
|
|
||||||
width: 720 * screenScaleFactor
|
width: Math.floor(720 * screenScaleFactor)
|
||||||
height: 640 * screenScaleFactor
|
height: Math.floor(640 * screenScaleFactor)
|
||||||
minimumWidth: width
|
minimumWidth: width
|
||||||
maximumWidth: minimumWidth
|
maximumWidth: minimumWidth
|
||||||
minimumHeight: height
|
minimumHeight: height
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ Column
|
||||||
delegate: Loader
|
delegate: Loader
|
||||||
{
|
{
|
||||||
asynchronous: true
|
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
|
height: UM.Theme.getSize("toolbox_thumbnail_small").height
|
||||||
source: "ToolboxDownloadsGridTile.qml"
|
source: "ToolboxDownloadsGridTile.qml"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue