Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
wip commit
Browse files Browse the repository at this point in the history
  • Loading branch information
rschmukler committed Jul 6, 2015
1 parent 18d8ae0 commit 124f2b7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/autocomplete/js/autocompleteController.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,13 @@ function MdAutocompleteCtrl ($scope, $element, $mdUtil, $mdConstant, $timeout, $
function handleHiddenChange (hidden, oldHidden) {
if (!hidden && oldHidden) {
positionDropdown();
console.log("Disable scroll");
if (elements) $timeout(function () { $mdUtil.disableScrollAround(elements.ul); }, 0, false);
} else if (hidden && !oldHidden) {
$mdUtil.enableScrolling();
console.log("Enable scroll");
$timeout(function() {
$mdUtil.enableScrolling();
}, 0, false);
}
}

Expand Down

0 comments on commit 124f2b7

Please sign in to comment.