Make elements retain their position if hotend or material is missing

Just a space makes it keep the correct height.

Contributes to issue CURA-5876.
This commit is contained in:
Ghostkeeper 2018-11-27 14:41:48 +01:00
parent 609f07399e
commit 956741922d
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276

View file

@ -33,7 +33,7 @@ Row
id: information
Label
{
text: printCoreConfiguration.material.brand
text: printCoreConfiguration.material.brand ? printCoreConfiguration.material.brand : " " //Use space so that the height is still correct.
renderType: Text.NativeRendering
elide: Text.ElideRight
font: UM.Theme.getFont("default")
@ -41,7 +41,7 @@ Row
}
Label
{
text: printCoreConfiguration.material.name
text: printCoreConfiguration.material.name ? printCoreConfiguration.material.name : " " //Use space so that the height is still correct.
renderType: Text.NativeRendering
elide: Text.ElideRight
font: UM.Theme.getFont("default")
@ -49,7 +49,7 @@ Row
}
Label
{
text: printCoreConfiguration.hotendID
text: printCoreConfiguration.hotendID ? printCoreConfiguration.hotendID : " " //Use space so that the height is still correct.
renderType: Text.NativeRendering
elide: Text.ElideRight
font: UM.Theme.getFont("default")