Merge pull request #2618 from umbraco/temp8-U4-11284-2

Removes vertical and horizontal scroll bars on content tree language …
This commit is contained in:
Warren Buckley
2018-05-08 12:20:22 +01:00
committed by GitHub
2 changed files with 20 additions and 4 deletions

View File

@@ -220,13 +220,29 @@ function NavigationController($scope, $rootScope, $location, $log, $q, $routePar
// Listen for language updates
evts.push(eventsService.on("editors.languages.languageDeleted", function (e, args) {
languageResource.getAll().then(function (languages) {
$scope.languages = languages;
contentTypeHelper.allowsVariation().then(function (b) {
if (b === "true") {
$scope.languages = languages;
} else {
$scope.languages = [];
}
});
});
}));
evts.push(eventsService.on("editors.languages.languageCreated", function(e, args) {
languageResource.getAll().then(function(languages) {
$scope.languages = languages;
contentTypeHelper.allowsVariation().then(function (b) {
if (b === "true") {
$scope.languages = languages;
} else {
$scope.languages = [];
}
});
});
}));

View File

@@ -31,7 +31,7 @@
position: absolute;
border-radius: 0 0 3px 3px;
max-height: 200px;
overflow: scroll;
overflow: auto;
}
.umb-language-picker__dropdown a {
@@ -45,4 +45,4 @@
.umb-language-picker__dropdown a:focus {
background: @gray-10;
text-decoration: none;
}
}