Wait until the image container is really already shown before calling resize.
This commit is contained in:
parent
e382fa1e58
commit
99eedb14d1
1 changed files with 4 additions and 2 deletions
|
@ -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();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Reference in a new issue