Add scroll bar to the WorkSpaceDialog

The warning message took out some space from the dialog. Added a scroll bar to make sure the content can still be read.

CURA-6990
This commit is contained in:
c.lamboo 2022-06-02 16:58:41 +02:00
parent 812b728636
commit fccfcb0e2b

View File

@ -31,10 +31,18 @@ UM.Dialog
}
}
Flickable
{
clip: true
width: parent.width
height: parent.height
contentHeight: dialogSummaryItem.height
ScrollBar.vertical: UM.ScrollBar { id: verticalScrollBar }
Item
{
id: dialogSummaryItem
width: parent.width
width: verticalScrollBar.visible ? parent.width - verticalScrollBar.width - UM.Theme.getSize("default_margin").width : parent.width
height: childrenRect.height
anchors.margins: 10 * screenScaleFactor
@ -441,6 +449,7 @@ UM.Dialog
}
}
}
}
buttonWarningText: "The material used in this project is currently not installed in Cura.<br/>Install the material profile and reopen the project."
buttonWarning: manager.missingPackages.length > 0