File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1229,8 +1229,8 @@ describe('MatAutocomplete', () => {
1229
1229
1230
1230
it ( 'should fall back to above position if panel cannot fit below' , async ( ( ) => {
1231
1231
// Push the autocomplete trigger down so it won't have room to open "below"
1232
- inputReference . style . top = '600px ' ;
1233
- inputReference . style . position = 'relative ' ;
1232
+ inputReference . style . bottom = '0 ' ;
1233
+ inputReference . style . position = 'fixed ' ;
1234
1234
1235
1235
fixture . componentInstance . trigger . openPanel ( ) ;
1236
1236
fixture . detectChanges ( ) ;
@@ -1247,8 +1247,8 @@ describe('MatAutocomplete', () => {
1247
1247
1248
1248
it ( 'should align panel properly when filtering in "above" position' , async ( ( ) => {
1249
1249
// Push the autocomplete trigger down so it won't have room to open "below"
1250
- inputReference . style . top = '600px ' ;
1251
- inputReference . style . position = 'relative ' ;
1250
+ inputReference . style . bottom = '0 ' ;
1251
+ inputReference . style . position = 'fixed ' ;
1252
1252
1253
1253
fixture . componentInstance . trigger . openPanel ( ) ;
1254
1254
fixture . detectChanges ( ) ;
You can’t perform that action at this time.
0 commit comments