on xenial help sign in
Account for special behaviour of VJ expandable attribute not being set on load but after
commit0ec6371b8199e1b222ba396acd7db92a5f331066 authorAlbert Astals <albert.astals@canonical.com> dateFri 20 Jun 2014, 12:31 (12 years ago) parent0713feb
1 file changed+8
qml/Dash/GenericScopeView.qml+8
qml/Dash/GenericScopeView.qml+8
@@ -203,6 +203,14 @@ FocusScope {
203203 previewListView.currentIndex = index;
204204 previewListView.open = true
205205 }
206+ onExpandableChanged: {
207+ // This can happen with the VJ that doesn't know how height it will be on creation
208+ // so doesn't set expandable until a bit too late for onLoaded
209+ if (rendererLoader.item.expandable) {
210+ var shouldFilter = baseItem.category != categoryView.expandedCategoryId;
211+ rendererLoader.item.setFilter(shouldFilter, false /*animate*/);
212+ }
213+ }
206214 }
207215 Connections {
208216 target: categoryView