We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e65c707 commit d2d1ec7Copy full SHA for d2d1ec7
plugins/dashboards/frontend/public/javascripts/countly.views.js
@@ -1307,6 +1307,15 @@
1307
if (this.grid) {
1308
this.grid.destroy();
1309
}
1310
+ },
1311
+ autoPosition: function(allWidgets) {
1312
+ var autoposition = false;
1313
+ allWidgets.forEach(function(widget) {
1314
+ if (!widget.position) {
1315
+ autoposition = true;
1316
+ }
1317
+ });
1318
+ return autoposition;
1319
1320
},
1321
mounted: function() {
plugins/dashboards/frontend/public/templates/grid.html
@@ -6,6 +6,7 @@
6
:key="widget._id"
7
:widget="widget"
8
:settings="widgetSettingsGetter(widget, true)"
9
+ :autoPosition="autoPosition(allWidgets)"
10
:loading="loading"
11
@ready="onReady"
12
@command="onWidgetAction">
0 commit comments