mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 08:09:00 +08:00
Add animation when expand/collapse panel
This commit is contained in:
parent
7b030a8235
commit
8e3fb6196d
@ -11,7 +11,6 @@ Item
|
||||
{
|
||||
id: objectSelector
|
||||
width: UM.Theme.getSize("objects_menu_size").width
|
||||
// height: childrenRect.height
|
||||
property bool opened: UM.Preferences.getValue("cura/show_list_of_files")
|
||||
|
||||
Button
|
||||
@ -51,6 +50,8 @@ Item
|
||||
visible: objectSelector.opened
|
||||
height: visible ? scroll.height : 0
|
||||
|
||||
Behavior on height { NumberAnimation { duration: 100 } }
|
||||
|
||||
anchors.bottom: parent.bottom
|
||||
|
||||
ScrollView
|
||||
|
Loading…
x
Reference in New Issue
Block a user