Give the section delegates a fixed height

This fixes the issue where the first printer would be drawn over the section label

CURA-6011
This commit is contained in:
Jaime van Kessel 2019-01-03 10:39:43 +01:00
parent 195d39f698
commit 979fd507de

View file

@ -18,7 +18,7 @@ ListView
{ {
text: section == "true" ? catalog.i18nc("@label", "Connected printers") : catalog.i18nc("@label", "Preset printers") text: section == "true" ? catalog.i18nc("@label", "Connected printers") : catalog.i18nc("@label", "Preset printers")
width: parent.width width: parent.width
height: visible ? contentHeight + 2 * UM.Theme.getSize("default_margin").height : 0 height: UM.Theme.getSize("action_button").height
leftPadding: UM.Theme.getSize("default_margin").width leftPadding: UM.Theme.getSize("default_margin").width
renderType: Text.NativeRendering renderType: Text.NativeRendering
font: UM.Theme.getFont("medium") font: UM.Theme.getFont("medium")