-
Notifications
You must be signed in to change notification settings - Fork 2.9k
feat: Implement onPositioningEnd callback #30177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ling1726
merged 7 commits into
microsoft:master
from
ling1726:react-positioning/feat/on-positioning-end
Jan 9, 2024
Merged
feat: Implement onPositioningEnd callback #30177
ling1726
merged 7 commits into
microsoft:master
from
ling1726:react-positioning/feat/on-positioning-end
Jan 9, 2024
Conversation
This file contains hidden or 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
Collaborator
Perf Analysis (
|
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| FluentProviderWithTheme | mount | 96 | 87 | 10 | Possible regression |
All results
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| Avatar | mount | 708 | 690 | 5000 | |
| Button | mount | 312 | 307 | 5000 | |
| Field | mount | 1177 | 1257 | 5000 | |
| FluentProvider | mount | 723 | 745 | 5000 | |
| FluentProviderWithTheme | mount | 96 | 87 | 10 | Possible regression |
| FluentProviderWithTheme | virtual-rerender | 88 | 76 | 10 | |
| FluentProviderWithTheme | virtual-rerender-with-unmount | 86 | 92 | 10 | |
| MakeStyles | mount | 865 | 852 | 50000 | |
| Persona | mount | 1935 | 1771 | 5000 | |
| SpinButton | mount | 1438 | 1420 | 5000 |
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit b664e78:
|
Collaborator
📊 Bundle size reportUnchanged fixtures
|
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: 99e1128925fa5863a99e311884cc2c710c2606bd (build) |
fabricteam
reviewed
Dec 29, 2023
khmakoto
reviewed
Jan 4, 2024
...ponents/react-components/stories/Concepts/Positioning/PositioningListenToUpdates.stories.tsx
Outdated
Show resolved
Hide resolved
...ponents/react-components/stories/Concepts/Positioning/PositioningListenToUpdates.stories.tsx
Outdated
Show resolved
Hide resolved
packages/react-components/react-menu/stories/Menu/MenuDefault.stories.tsx
Show resolved
Hide resolved
khmakoto
approved these changes
Jan 6, 2024
layershifter
reviewed
Jan 8, 2024
...ponents/react-components/stories/Concepts/Positioning/PositioningListenToUpdates.stories.tsx
Outdated
Show resolved
Hide resolved
layershifter
approved these changes
Jan 8, 2024
marcosmoura
added a commit
to marcosmoura/fluentui
that referenced
this pull request
Jan 10, 2024
* master: (166 commits) Remove v0 dependency from v0 compat package (microsoft#30276) applying package updates Disallow `window` and `document` access for `@fluentui/react` and related packages. (microsoft#30063) Update Rating api and stories (microsoft#30092) TeachingPopover: Minor style changes (microsoft#30270) feat(scripts-gulp): replace lerna with nx (microsoft#30266) ci: remove canary and nightly functionality from northstar (microsoft#30264) List: Re-initialize on mount in React 18. (microsoft#29881) feat(scripts-monorepo): replace lerna/utils with pure nx apis (microsoft#30178) chore: remove react-timepicker-compat-preview (microsoft#30263) applying package updates feat(TimePicker-compat): stable release (microsoft#30217) feat: Implement onPositioningEnd callback (microsoft#30177) applying package updates v8 registerIcons compat (microsoft#30003) Adding Planner, ToDoItem and updated Project filetype icons. Updating FabricCDN url to latest datecode. (microsoft#30079) Scaffolds more Nav components (microsoft#30227) chore: migrate to nx 17.2 (microsoft#30187) applying package updates feat: Update position when target or container dimensions change (microsoft#30179) ...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

The vanilla-js positioning manager now dispatches a custom DOM event when a position update has finished. The position update is considered 'finished' once the coordinates have been written to the container element.
Updates the React binding to have a
onPositoningEndcallback that listens to the new custom DOM eventFixes #30176
Fixes #19782