Use textwidth instead of round

CURA-5785

Co-Authored-By: nallath <nallath@gmail.com>
This commit is contained in:
Ghostkeeper 2018-11-16 15:14:08 +01:00 committed by GitHub
parent fe15a0a513
commit 816d844258
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -134,7 +134,7 @@ Cura.ExpandableComponent
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
property var model: extrudersModel.items[tabBar.currentIndex] property var model: extrudersModel.items[tabBar.currentIndex]
property real textWidth: Math.round(width * 0.3) property real textWidth: Math.round(width * 0.3)
property real controlWidth: Math.round(width * 0.7) property real controlWidth: width - textWidth
Column Column
{ {
spacing: UM.Theme.getSize("default_margin").height spacing: UM.Theme.getSize("default_margin").height
@ -236,4 +236,4 @@ Cura.ExpandableComponent
} }
} }
} }