Skip to content

Commit 0c98360

Browse files
committed
fix(material/autocomplete): resets autocomplete panel positionStrategy when not in mobile landscape
Updates the previous fix which checks for Breakpoint.HandsetLandscape and applies flexibleDimensions withGrowAfterOpen and adds withViewportMargin and removes those values if Breakpoint.HandsetLandscape is false. Fixes b/284148377
1 parent 1206e10 commit 0c98360

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/material/autocomplete/autocomplete-trigger.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,10 @@ export class MatAutocompleteTrigger
809809
.withGrowAfterOpen(true)
810810
.withViewportMargin(8);
811811
} else {
812-
this._positionStrategy.withGrowAfterOpen(false);
812+
this._positionStrategy
813+
.withFlexibleDimensions(false)
814+
.withGrowAfterOpen(false)
815+
.withViewportMargin(0);
813816
}
814817
});
815818
} else {

0 commit comments

Comments
 (0)