Browse Source

UI:fix. Dashboard (widgets order mobile view) (#2029)

pull/2105/head
Oleg Kolesnik 7 years ago
committed by Igor Kulikov
parent
commit
8b0d7c1e64
  1. 2
      ui/src/app/components/dashboard.directive.js

2
ui/src/app/components/dashboard.directive.js

@ -353,6 +353,7 @@ function DashboardController($scope, $rootScope, $element, $timeout, $mdMedia, $
ids.sort(function (id1, id2) {
return id1.localeCompare(id2);
});
sortWidgets();
if (angular.equals(ids, vm.widgetIds)) {
return;
}
@ -388,7 +389,6 @@ function DashboardController($scope, $rootScope, $element, $timeout, $mdMedia, $
delete vm.widgetLayoutInfo[widgetId];
}
}
sortWidgets();
$mdUtil.nextTick(function () {
if (autofillHeight()) {
updateMobileOpts();

Loading…
Cancel
Save