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

Commit

Permalink
fix(autocomplete): fixes positioning logic to fire at the correct time
Browse files Browse the repository at this point in the history
Closes #2298
  • Loading branch information
Robert Messerle committed Apr 16, 2015
1 parent 5a02809 commit 8946322
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/autocomplete/js/autocompleteController.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
registerSelectedItemWatcher(selectedItemChange);
$scope.$watch('selectedItem', handleSelectedItemChange);
$scope.$watch('$mdAutocompleteCtrl.hidden', function (hidden, oldHidden) {
if (hidden && !oldHidden) positionDropdown();
if (!hidden && oldHidden) positionDropdown();
});
angular.element($window).on('resize', positionDropdown);
}
Expand Down

0 comments on commit 8946322

Please sign in to comment.