You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, if none of the preferred positions fit in the viewport, the ConnectedPositionStrategy will simply apply the first preferred position. The next step in its implementation would be to keep track of how far each position is from fitting in the viewport, and apply the "best fit" position if none of them fit.
…largest area of the element
Switches the `connected-position` to pick the fallback position with the largest visible area, if all of the fallbacks didn't fit into the viewport.
Fixesangular#2049.
…largest area of the element
Switches the `connected-position` to pick the fallback position with the largest visible area, if all of the fallbacks didn't fit into the viewport.
Fixesangular#2049.
…largest area of the element (#2102)
* feat(connected-position): apply the fallback position that shows the largest area of the element
Switches the `connected-position` to pick the fallback position with the largest visible area, if all of the fallbacks didn't fit into the viewport.
Fixes#2049.
* Sort the fallbacks within the same loop.
Currently, if none of the preferred positions fit in the viewport, the ConnectedPositionStrategy will simply apply the first preferred position. The next step in its implementation would be to keep track of how far each position is from fitting in the viewport, and apply the "best fit" position if none of them fit.
cc: @jelbourn
The text was updated successfully, but these errors were encountered: