mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 13:49:00 +08:00
Add scrollbar to profile dropdown
CURA-6843
This commit is contained in:
parent
027768f151
commit
f8951e4140
@ -41,6 +41,18 @@ Popup
|
||||
contentItem: Column
|
||||
{
|
||||
// This repeater adds the intent labels
|
||||
ScrollView
|
||||
{
|
||||
property real maximumHeight: screenScaleFactor * 400
|
||||
|
||||
height: Math.min(contentHeight, maximumHeight)
|
||||
clip: true
|
||||
|
||||
ScrollBar.vertical.policy: height == maximumHeight ? ScrollBar.AlwaysOn: ScrollBar.AlwaysOff
|
||||
|
||||
Column
|
||||
{
|
||||
width: parent.width
|
||||
Repeater
|
||||
{
|
||||
model: dataModel
|
||||
@ -51,11 +63,7 @@ Popup
|
||||
property variant subItemModel: model.qualities
|
||||
|
||||
height: childrenRect.height
|
||||
anchors
|
||||
{
|
||||
left: parent.left
|
||||
right: parent.right
|
||||
}
|
||||
width: popup.contentWidth
|
||||
|
||||
Label
|
||||
{
|
||||
@ -116,7 +124,6 @@ Popup
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//Another "intent category" for custom profiles.
|
||||
Item
|
||||
{
|
||||
@ -186,6 +193,8 @@ Popup
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Rectangle
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user