Wait until the image container is really already shown before calling resize.

This commit is contained in:
yackob03 2013-10-17 17:59:34 -04:00
parent e382fa1e58
commit 99eedb14d1

View file

@ -270,7 +270,7 @@ function LandingCtrl($scope, $timeout, Restangular, UserService, KeyService) {
browserchrome.update(); browserchrome.update();
} }
function RepoCtrl($scope, Restangular, $routeParams, $rootScope, $location) { function RepoCtrl($scope, Restangular, $routeParams, $rootScope, $location, $timeout) {
$rootScope.title = 'Loading...'; $rootScope.title = 'Loading...';
// Watch for changes to the tag parameter. // Watch for changes to the tag parameter.
@ -329,7 +329,9 @@ function RepoCtrl($scope, Restangular, $routeParams, $rootScope, $location) {
$scope.$watch('repo', function() { $scope.$watch('repo', function() {
if ($scope.tree) { if ($scope.tree) {
$timeout(function() {
$scope.tree.notifyResized(); $scope.tree.notifyResized();
});
} }
}); });