Adjust sizes in the custom print setup mode

Contributes to CURA-5941.
This commit is contained in:
Diego Prado Gesto 2018-12-05 13:05:22 +01:00
parent cdb8020029
commit 034b1660f7
3 changed files with 8 additions and 11 deletions

View file

@ -11,9 +11,7 @@ import Cura 1.0 as Cura
Item
{
id: customPrintSetup
// TODO: Hardcoded now but UX has to decide about the height of this item
height: 480
height: childrenRect.height + padding
property real padding: UM.Theme.getSize("default_margin").width
property bool multipleExtruders: extrudersModel.count > 1
@ -93,16 +91,15 @@ Item
Rectangle
{
height: UM.Theme.getSize("print_setup_widget").height
anchors
{
top: tabBar.visible ? tabBar.bottom : globalProfileRow.bottom
top: tabBar.bottom
left: parent.left
leftMargin: parent.padding
right: parent.right
rightMargin: parent.padding
bottom: parent.bottom
topMargin: -UM.Theme.getSize("default_lining").width
bottomMargin: -UM.Theme.getSize("default_lining").width
}
z: tabBar.z - 1
// Don't show the border when only one extruder