-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Callout positioning: update useMaxHeight hook for top edge alignment;…
… account for scroll resizing when choosing callout position. (#29766) * Don't flip if callout is scrollable * Fix callout sizing and scroll adjustment * changefile and add comment * Remove unnecessary check * Remove bad import * Add comment and get rid of helper function * Undo changes to adjustFitWithinBounds * Remove newline * Fix build errors * Fix visual regressions / runtime error * Fix build errors and add min scroll height param * Fix up PR * Fix package build * Add opt-in param to scroll resizing behavior * Fix lint errors * Fix deps * Responding to comments * Stabilize refs * Responding to PR comments
- Loading branch information
Showing
6 changed files
with
235 additions
and
39 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
change/@fluentui-react-c8535f3e-253b-40b8-92e7-bb6c8e552afe.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "minor", | ||
"comment": "fix(Callout): Update useMaxHeight hook for callout to use target top as bottom bound when aligned to top edge; account for scroll resizing when picking the best edge for positioning alignment", | ||
"packageName": "@fluentui/react", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.