on xenial help sign in
Fix the carousel converted to grid scenario
291d4b4Albert Astals
qml/Dash/CardFilterGrid.qml+7−1
@@ -28,7 +28,13 @@ DashFilterGrid {
28 CardTool {
28 CardTool {
29 id: cardTool
29 id: cardTool
30
30
31+ template: {
32+ // We can't trust the parent template. It may happen that originally
33+ // it was a carousel but it's now a grid because of the lack of elements
31− template: genericFilterGrid.template
34+ var t = genericFilterGrid.template
35+ t["category-layout"] = "grid";
36+ return t;
37+ }
32 components: genericFilterGrid.components
38 components: genericFilterGrid.components
33 }
39 }
34
40