Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(material/autocomplete): autocomplete panel top is cut off in land…
…scape mode (angular#28982) * fix(material/autocomplete): autocomplete panel top is cut off in landscape mode Fixes a bug in the Angular Material Autocomplete component where the autocomplete panel listbox top is cut off by the device screen when being viewed in landscape mode. This is because the listbox max-height is greater than the distance between the top of the autocomplete input and the screen top. Fixes b/284148377 * fix(material/autocomplete): autocomplete panel top is cut off in landscape mode Fixes lint error from previous commit which fixes Angular Component's autocomplete panel top from being cut off when viewed in landscape mode. The previous max-height of the panel is more than the height of the panel from the top of the input when in the bottom half to the top of the device's screen. Fixes b/284148377 * fix(material/autocomplete): autocomplete panel top cut off in landscape mode Fixes a bug in the Angular Material Autocomplete component where the autocomplete panel listbox is cut off by the device screen when being viewed in landscape mode. This is because the CDK overlay does not adjust its size based on the screen constraints when triggered. Fixes b/284148377 * fix(material/autocomplete): autocomplete panel top cut off in mobile landscape mode Fixes a bug in the Angular Material Autocomplete component where the autocomplete panel top was being cut off by the screen in mobile landscape mode. Updates previous fix to target adjustments on HandsetLandscape only. Fixes b/284148377 * refactor(material/autocomplete): autocomplete panel top cut off in mobile landscape mode Removing unnecessary comments. Fixes: b/284148377 * refactor(material/autocomplete): Injects Breakpoint to fix breaking tests Fixes broken presubmit tests for Angular Component's Autocomplete constructor by injecting BreakpointObserver rather than adding to the constructor. Fixes b/247881646 * fix(material/autocomplete): update style.bottom value for broken test Fixes breaking Angular Component Autocomplete comoponent's autocomplete spec.ts so that the value falls within an acceptable range based on the new behavior of the autocomplete in landscape mode. Fixes b/284148377 * fix(material/autocomplete): panel top gets cut off in mobile landscape view Updates previous fix to unsubscribe from the _breakpointObserver on ngOnDestroy. Fixes b/284148377 * fix(material/autocomplete): autocomplete panel gets cut off in mobile landscape Updates fix to autocomplete panel which was getting cut off in mobile landscape by correctly assigning const isHandsetLandscape to the subscription result.matches value and thus if isHandsetLandscape is true then applying flexible dimensions, grow after open and with viewport margin to the panel on open. Fixes b/284148377 * fix(material/autocomplete): autocomplete panel top cut off in mobile landscape Fixes Angular Components autocomplete so that when the panel is open in mobile landscape that it does not cut off at the top and the panel resizes/adjusts according to the viewport. Updates the previous fix to avoid subscribing to handsetLandscapeSubscription as a side effect. Fixes b/284148377 * 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 * refactor(material/autocomplete): autocomplete panel cut off in mobile landscape Updates BreakpointObserver import after rebasing latest changes. Fixes b/284148377
- Loading branch information