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

Commit f1dcaf9

Browse files
author
Robert Messerle
committed
fix(autocomplete): fixes height issue on md-not-found message
Closes #5305
1 parent e07c52d commit f1dcaf9

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/components/autocomplete/autocomplete.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,10 @@ md-autocomplete {
201201
z-index: $z-index-tooltip;
202202
}
203203

204+
.md-virtual-repeat-container.md-not-found {
205+
height: 48px;
206+
}
207+
204208
.md-autocomplete-suggestions {
205209
margin: 0;
206210
list-style: none;

src/components/autocomplete/js/autocompleteDirective.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ function MdAutocomplete () {
178178
ng-mouseup="$mdAutocompleteCtrl.mouseUp()"\
179179
ng-hide="$mdAutocompleteCtrl.hidden"\
180180
class="md-autocomplete-suggestions-container md-whiteframe-z1"\
181+
ng-class="{ \'md-not-found\': $mdAutocompleteCtrl.notFoundVisible() }"\
181182
role="presentation">\
182183
<ul class="md-autocomplete-suggestions"\
183184
ng-class="::menuClass"\

0 commit comments

Comments
 (0)