Changed parseInt to Math.floor

This commit is contained in:
Mark 2017-10-11 16:47:40 +02:00
parent 331574eec0
commit 3a7fbdb173
7 changed files with 64 additions and 64 deletions

View file

@ -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