Commit 8b0d7c1e64a7e3ac4ff830347739079ca1cb9b47
Committed by
Igor Kulikov
1 parent
467d7b5c
UI:fix. Dashboard (widgets order mobile view) (#2029)
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -353,6 +353,7 @@ function DashboardController($scope, $rootScope, $element, $timeout, $mdMedia, $ | @@ -353,6 +353,7 @@ function DashboardController($scope, $rootScope, $element, $timeout, $mdMedia, $ | ||
353 | ids.sort(function (id1, id2) { | 353 | ids.sort(function (id1, id2) { |
354 | return id1.localeCompare(id2); | 354 | return id1.localeCompare(id2); |
355 | }); | 355 | }); |
356 | + sortWidgets(); | ||
356 | if (angular.equals(ids, vm.widgetIds)) { | 357 | if (angular.equals(ids, vm.widgetIds)) { |
357 | return; | 358 | return; |
358 | } | 359 | } |
@@ -388,7 +389,6 @@ function DashboardController($scope, $rootScope, $element, $timeout, $mdMedia, $ | @@ -388,7 +389,6 @@ function DashboardController($scope, $rootScope, $element, $timeout, $mdMedia, $ | ||
388 | delete vm.widgetLayoutInfo[widgetId]; | 389 | delete vm.widgetLayoutInfo[widgetId]; |
389 | } | 390 | } |
390 | } | 391 | } |
391 | - sortWidgets(); | ||
392 | $mdUtil.nextTick(function () { | 392 | $mdUtil.nextTick(function () { |
393 | if (autofillHeight()) { | 393 | if (autofillHeight()) { |
394 | updateMobileOpts(); | 394 | updateMobileOpts(); |