From 8e3fb6196d06ef4d4fa22081ee94f7dc8e113d34 Mon Sep 17 00:00:00 2001 From: Diego Prado Gesto Date: Sun, 3 Mar 2019 21:18:34 +0100 Subject: [PATCH] Add animation when expand/collapse panel --- resources/qml/ObjectSelector.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/qml/ObjectSelector.qml b/resources/qml/ObjectSelector.qml index e13b6eea26..266293a0af 100644 --- a/resources/qml/ObjectSelector.qml +++ b/resources/qml/ObjectSelector.qml @@ -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