From 43b5cf7b191cad1a0ff36f5a0382f97b8548546c Mon Sep 17 00:00:00 2001 From: crisbeto Date: Thu, 19 Oct 2017 21:07:23 +0200 Subject: [PATCH] build: autocomplete test failure in iOS Safari --- src/lib/autocomplete/autocomplete.spec.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/autocomplete/autocomplete.spec.ts b/src/lib/autocomplete/autocomplete.spec.ts index b0e94b829819..7a9698b8fbde 100644 --- a/src/lib/autocomplete/autocomplete.spec.ts +++ b/src/lib/autocomplete/autocomplete.spec.ts @@ -1229,8 +1229,8 @@ describe('MatAutocomplete', () => { it('should fall back to above position if panel cannot fit below', async(() => { // Push the autocomplete trigger down so it won't have room to open "below" - inputReference.style.top = '600px'; - inputReference.style.position = 'relative'; + inputReference.style.bottom = '0'; + inputReference.style.position = 'fixed'; fixture.componentInstance.trigger.openPanel(); fixture.detectChanges(); @@ -1247,8 +1247,8 @@ describe('MatAutocomplete', () => { it('should align panel properly when filtering in "above" position', async(() => { // Push the autocomplete trigger down so it won't have room to open "below" - inputReference.style.top = '600px'; - inputReference.style.position = 'relative'; + inputReference.style.bottom = '0'; + inputReference.style.position = 'fixed'; fixture.componentInstance.trigger.openPanel(); fixture.detectChanges();