mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 03:46:05 +08:00
Fix rounding issue in toolbox QML widget size
CURA-6006
This commit is contained in:
parent
861deaa9f7
commit
69744282e6
@ -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…
x
Reference in New Issue
Block a user