on xenial help sign in
Account for special behaviour of VJ expandable attribute not being set on load but after
0ec6371Albert Astals
qml/Dash/GenericScopeView.qml+8
@@ -203,6 +203,14 @@ FocusScope {
203 previewListView.currentIndex = index;
203 previewListView.currentIndex = index;
204 previewListView.open = true
204 previewListView.open = true
205 }
205 }
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+ }
206 }
214 }
207 Connections {
215 Connections {
208 target: categoryView
216 target: categoryView