mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Add animation when expand/collapse panel
This commit is contained in:
parent
7b030a8235
commit
8e3fb6196d
1 changed files with 2 additions and 1 deletions
|
|
@ -11,7 +11,6 @@ Item
|
||||||
{
|
{
|
||||||
id: objectSelector
|
id: objectSelector
|
||||||
width: UM.Theme.getSize("objects_menu_size").width
|
width: UM.Theme.getSize("objects_menu_size").width
|
||||||
// height: childrenRect.height
|
|
||||||
property bool opened: UM.Preferences.getValue("cura/show_list_of_files")
|
property bool opened: UM.Preferences.getValue("cura/show_list_of_files")
|
||||||
|
|
||||||
Button
|
Button
|
||||||
|
|
@ -51,6 +50,8 @@ Item
|
||||||
visible: objectSelector.opened
|
visible: objectSelector.opened
|
||||||
height: visible ? scroll.height : 0
|
height: visible ? scroll.height : 0
|
||||||
|
|
||||||
|
Behavior on height { NumberAnimation { duration: 100 } }
|
||||||
|
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
|
|
||||||
ScrollView
|
ScrollView
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue