mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 21:44:01 -06:00
Make package detail page scroll if details are too long
Some plug-ins could have very long descriptions now. We show all of it, but that could go off the screen in theory. This makes the content scrollable if it goes off the screen. Contributes to issue CURA-8565.
This commit is contained in:
parent
ffd1a4d812
commit
d511c4542a
1 changed files with 22 additions and 12 deletions
|
@ -67,20 +67,30 @@ Item
|
|||
}
|
||||
color: UM.Theme.getColor("detail_background")
|
||||
|
||||
PackageCard
|
||||
ScrollView
|
||||
{
|
||||
anchors
|
||||
{
|
||||
left: parent.left
|
||||
leftMargin: UM.Theme.getSize("default_margin").width
|
||||
right: parent.right
|
||||
rightMargin: anchors.leftMargin
|
||||
top: parent.top
|
||||
topMargin: UM.Theme.getSize("default_margin").height
|
||||
}
|
||||
anchors.fill: parent
|
||||
|
||||
packageData: detailPage.packageData
|
||||
expanded: true
|
||||
clip: true //Need to clip, not for the bottom (which is off the window) but for the top (which would overlap the header).
|
||||
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
|
||||
contentHeight: expandedPackageCard.height + UM.Theme.getSize("default_margin").height * 2
|
||||
|
||||
PackageCard
|
||||
{
|
||||
id: expandedPackageCard
|
||||
anchors
|
||||
{
|
||||
left: parent.left
|
||||
leftMargin: UM.Theme.getSize("default_margin").width
|
||||
right: parent.right
|
||||
rightMargin: anchors.leftMargin
|
||||
top: parent.top
|
||||
topMargin: UM.Theme.getSize("default_margin").height
|
||||
}
|
||||
|
||||
packageData: detailPage.packageData
|
||||
expanded: true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue