Use pre-calculated control height

It's way faster to not re-compute every single time
This commit is contained in:
Jaime van Kessel 2020-07-10 14:34:02 +02:00
parent d1afc63902
commit e633b6408e
No known key found for this signature in database
GPG key ID: 3710727397403C91
2 changed files with 2 additions and 1 deletions

View file

@ -156,7 +156,7 @@ Item
{
id: settingControls
height: Math.round(parent.height / 2)
height: UM.Theme.getSize("section_control").height
spacing: Math.round(UM.Theme.getSize("thick_margin").height / 2)
anchors