mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Added scroll bar to per object panel
If there are too many per object settings a scrollbar is now displayed CURA-2131
This commit is contained in:
parent
7138fd6ef4
commit
ea324eadc0
2 changed files with 94 additions and 87 deletions
|
@ -154,11 +154,17 @@ Item {
|
||||||
Column
|
Column
|
||||||
{
|
{
|
||||||
spacing: UM.Theme.getSize("default_lining").height
|
spacing: UM.Theme.getSize("default_lining").height
|
||||||
|
// This is to ensure that the panel is first increasing in size up to 200 and then shows a scrollbar.
|
||||||
Repeater
|
// It kinda looks ugly otherwise (big panel, no content on it)
|
||||||
|
height: contents.count * UM.Theme.getSize("section").height < 200 ? contents.count * UM.Theme.getSize("section").height : 200
|
||||||
|
ScrollView
|
||||||
|
{
|
||||||
|
height: parent.height
|
||||||
|
width: UM.Theme.getSize("setting").width
|
||||||
|
style: UM.Theme.styles.scrollview
|
||||||
|
ListView
|
||||||
{
|
{
|
||||||
id: contents
|
id: contents
|
||||||
height: childrenRect.height;
|
|
||||||
|
|
||||||
model: UM.SettingDefinitionsModel
|
model: UM.SettingDefinitionsModel
|
||||||
{
|
{
|
||||||
|
@ -259,6 +265,7 @@ Item {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Button
|
Button
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue