Răsfoiți Sursa

Make sure layout math is done on load.

Paulo Reis 9 ani în urmă
părinte
comite
f11926d0a9

+ 3 - 4
services/web/public/coffee/main/project-list/project-list.coffee

@@ -14,10 +14,9 @@ define [
 		$scope.searchText = 
 		$scope.searchText = 
 			value : ""
 			value : ""
 
 
-		if $scope.projects.length == 0
-			$timeout () ->
-				recalculateProjectListHeight()
-			, 10
+		$timeout () ->
+			recalculateProjectListHeight()
+		, 10
 
 
 		recalculateProjectListHeight = () ->
 		recalculateProjectListHeight = () ->
 			topOffset = $(".project-list-card")?.offset()?.top
 			topOffset = $(".project-list-card")?.offset()?.top