Skip to content

Commit

Permalink
Revert "fix(autocomplete): show dropdown on top only when there is ro…
Browse files Browse the repository at this point in the history
…om" (angular#11626)

This reverts commit a37f7cc.

Creating this PR to investigate failure in google3 possibly caused by the reverted change
  • Loading branch information
mmalerba authored Feb 1, 2019
1 parent e64875d commit 46e08e5
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 @@ -143,7 +143,7 @@ function MdAutocompleteCtrl ($scope, $element, $mdUtil, $mdConstant, $mdTheming,

// Automatically determine dropdown placement based on available space in viewport.
if (!position) {
position = (vrect.top + MENU_PADDING > dropdownHeight) ? 'top' : 'bottom';
position = (top > bot && root.height - top - MENU_PADDING < dropdownHeight) ? 'top' : 'bottom';
}
// Adjust the width to account for the padding provided by `md-input-container`
if ($attrs.mdFloatingLabel) {
Expand Down

0 comments on commit 46e08e5

Please sign in to comment.