mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-22 22:23:57 -06:00
Changed parseInt to Math.floor
This commit is contained in:
parent
331574eec0
commit
3a7fbdb173
7 changed files with 64 additions and 64 deletions
|
@ -39,7 +39,7 @@ Item
|
|||
{
|
||||
id: globalProfileLabel
|
||||
text: catalog.i18nc("@label","Profile:");
|
||||
width: parseInt(parent.width * 0.45 - UM.Theme.getSize("sidebar_margin").width - 2)
|
||||
width: Math.floor(parent.width * 0.45 - UM.Theme.getSize("sidebar_margin").width - 2)
|
||||
font: UM.Theme.getFont("default");
|
||||
color: UM.Theme.getColor("text");
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
|
@ -63,7 +63,7 @@ Item
|
|||
}
|
||||
enabled: !header.currentExtruderVisible || header.currentExtruderIndex > -1
|
||||
|
||||
width: parseInt(parent.width * 0.55)
|
||||
width: Math.floor(parent.width * 0.55)
|
||||
height: UM.Theme.getSize("setting_control").height
|
||||
anchors.left: globalProfileLabel.right
|
||||
anchors.right: parent.right
|
||||
|
@ -77,8 +77,8 @@ Item
|
|||
id: customisedSettings
|
||||
|
||||
visible: Cura.MachineManager.hasUserSettings
|
||||
height: parseInt(parent.height * 0.6)
|
||||
width: parseInt(parent.height * 0.6)
|
||||
height: Math.floor(parent.height * 0.6)
|
||||
width: Math.floor(parent.height * 0.6)
|
||||
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
anchors.right: parent.right
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue