Skip to content
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

[Cherry-pick] withViewport: Fix stale viewport calculation when toggling skipViewportMeasure #9646

Merged

Conversation

KevinTCoughlin
Copy link
Member

@KevinTCoughlin KevinTCoughlin commented Jul 1, 2019

Cherry-pick of #9565 into 7.x. See linked PR for description.

Microsoft Reviewers: Open in CodeFlow

…rtMeasure (microsoft#9565)

* withViewport: recalculate viewport if skipViewportMeasures has become falsey

* Add change file

* Fix document library row regression

* memoize sum column widths

* Rm debug

* Update API

* Update common/changes/office-ui-fabric-react/keco-withViewport-recalc_2019-06-25-00-02.json

* Refactor rowWidth to IDetailsItemProps

* Fix and re-enable onColumnResize test

* Update DetailsList examples to use layoutMode justified for full width

* Update snapshots
@KevinTCoughlin KevinTCoughlin changed the title withViewport: Fix stale viewport calculation when toggling skipViewportMeasure [Cherry-pick] withViewport: Fix stale viewport calculation when toggling skipViewportMeasure Jul 1, 2019
@size-auditor
Copy link

size-auditor bot commented Jul 1, 2019

Bundle test Size (minified) Diff from master
DetailsList 209.827 kB ExceedsBaseline     254 bytes
ShimmeredDetailsList 221.042 kB ExceedsBaseline     254 bytes

ExceedsTolerance  Exceeds Tolerance     ExceedsBaseline  Exceeds Baseline     BelowBaseline  Below Baseline     1 kB = 1000 bytes

@msft-github-bot
Copy link
Contributor

Component Perf Analysis:

Scenario Master Samples * PR Samples *
BaseButton 883 904
BaseButton (experiments) 1848 1800
DefaultButton 1185 1172
DefaultButton (experiments) 2046 2051
DetailsRow 5925 6010
DetailsRow without styles 5725 5670
DocumentCardTitle with truncation 45043 44842
MenuButton 2096 2182
MenuButton (experiments) 4968 5024
PrimaryButton 1404 1426
PrimaryButton (experiments) 2456 2486
SplitButton 3928 4035
SplitButton (experiments) 9425 9430
Stack 549 562
Stack with Intrinsic children 1987 1988
Stack with Text children 5477 5572
Text 460 432
Toggle 1048 1067
Toggle (experiments) 2568 2507
button 78 77
* Sample counts can vary by up to 30% and shouldn't be used solely for determining regression. For more information please see the Perf Testing wiki.

@msft-github-bot
Copy link
Contributor

Hello @KevinTCoughlin!

Because this pull request has the AutoMerge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

Do note that I've been instructed to only help merge pull requests of this repository that have been opened for at least 8 hours, a condition that will be fulfilled in about 7 hours 23 minutes. No worries though, I will be back when the time is right! 😉

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msft-github-bot) and give me an instruction to get started! Learn more here.

@msft-github-bot msft-github-bot merged commit 5b8005c into microsoft:master Jul 2, 2019
gingeroun pushed a commit to gingeroun/office-ui-fabric-react that referenced this pull request Jul 5, 2019
…rtMeasure (microsoft#9565) (microsoft#9646)

* withViewport: recalculate viewport if skipViewportMeasures has become falsey

* Add change file

* Fix document library row regression

* memoize sum column widths

* Rm debug

* Update API

* Update common/changes/office-ui-fabric-react/keco-withViewport-recalc_2019-06-25-00-02.json

* Refactor rowWidth to IDetailsItemProps

* Fix and re-enable onColumnResize test

* Update DetailsList examples to use layoutMode justified for full width

* Update snapshots
@microsoft microsoft locked as resolved and limited conversation to collaborators Aug 30, 2019
@KevinTCoughlin KevinTCoughlin deleted the keco/withViewport-fix branch January 2, 2020 19:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants