mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-16 07:26:00 +08:00
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:
parent
609f07399e
commit
956741922d
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user