Skip to content

Check for no wrap fix#9542

Merged
JasonGore merged 6 commits intomicrosoft:masterfrom
cvirendra:checkForNoWrapFix
Jun 24, 2019
Merged

Check for no wrap fix#9542
JasonGore merged 6 commits intomicrosoft:masterfrom
cvirendra:checkForNoWrapFix

Conversation

@cvirendra
Copy link
Contributor

@cvirendra cvirendra commented Jun 21, 2019

Pull request checklist

Description of changes

Convert strings to floating point before using.

Focus areas to test

(optional)

Microsoft Reviewers: Open in CodeFlow

@msftclas
Copy link

msftclas commented Jun 21, 2019

CLA assistant check
All CLA requirements met.

@msft-github-bot
Copy link
Contributor

msft-github-bot commented Jun 21, 2019

Component perf results:

Scenario Target branch avg total (ms) PR avg total (ms) Target branch avg per item (ms) PR avg per item (ms) Is significant change Is regression
DefaultButton 42.422 43.098 0.424 0.431 false false
PrimaryButton 44.706 45.687 0.447 0.457 false false
MenuButton 61.670 63.573 0.617 0.636 false false
SplitButton 106.896 109.088 1.069 1.091 false false
BaseButton 27.013 26.813 0.270 0.268 false false
NewDefaultButton 73.620 73.769 0.736 0.738 false false
NewPrimaryButton 70.194 71.458 0.702 0.715 false false
NewMenuButton 127.656 128.826 1.277 1.288 false false
NewSplitButton 254.950 257.136 2.549 2.571 false false
button 5.247 5.225 0.052 0.052 false false
DetailsRows without styles 167.666 169.106 1.677 1.691 false false
DetailsRows 188.250 191.973 1.882 1.920 false false
Toggles 50.520 49.774 0.505 0.498 false false
NewToggle 59.520 61.021 0.595 0.610 false false
DocumentCardTitle with truncation 23.857 23.882 0.239 0.239 false false

@size-auditor
Copy link

size-auditor bot commented Jun 21, 2019

Bundle test Size (minified) Diff from master
CommandBar 178.252 kB ExceedsBaseline     96 bytes
ExtendedPicker 83.049 kB ExceedsBaseline     96 bytes
OverflowSet 51.559 kB ExceedsBaseline     96 bytes
Dialog 184.79 kB ExceedsBaseline     96 bytes
DetailsList 204.699 kB ExceedsBaseline     96 bytes
Pickers 254.148 kB ExceedsBaseline     96 bytes
Pivot 166.234 kB ExceedsBaseline     96 bytes
DatePicker 194.998 kB ExceedsBaseline     96 bytes
ContextualMenu 141.576 kB ExceedsBaseline     96 bytes
Nav 167.263 kB ExceedsBaseline     96 bytes
Rating 78.232 kB ExceedsBaseline     96 bytes
ComboBox 216.217 kB ExceedsBaseline     96 bytes
Dropdown 205.668 kB ExceedsBaseline     96 bytes
SearchBox 165.313 kB ExceedsBaseline     96 bytes
MessageBar 167.608 kB ExceedsBaseline     96 bytes
SelectedItemsList 204.977 kB ExceedsBaseline     96 bytes
Panel 176.979 kB ExceedsBaseline     96 bytes
DocumentCard 192.118 kB ExceedsBaseline     96 bytes
Facepile 188.27 kB ExceedsBaseline     96 bytes
ShimmeredDetailsList 215.914 kB ExceedsBaseline     96 bytes
FloatingPicker 214.729 kB ExceedsBaseline     96 bytes
SpinButton 171.345 kB ExceedsBaseline     96 bytes
FocusZone 30.538 kB ExceedsBaseline     96 bytes
Calendar 139.165 kB ExceedsBaseline     96 bytes
Button 171.096 kB ExceedsBaseline     96 bytes
SwatchColorPicker 170.875 kB ExceedsBaseline     96 bytes
TeachingBubble 170.125 kB ExceedsBaseline     96 bytes
Breadcrumb 176.205 kB ExceedsBaseline     96 bytes
Grid 161.045 kB ExceedsBaseline     96 bytes
GroupedList 114.438 kB ExceedsBaseline     96 bytes

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

@aftab-hassan
Copy link
Contributor

@JasonGore could you please take a look at this community contribution and help review.

@cvirendra thank you for opening your first pull request on our repo!

Copy link
Member

@JasonGore JasonGore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's odd that the Fabric examples page doesn't show this behavior, but the Codepen does. I think it has something to do with the coordinates being non-zero for the Codepen.

I checked the solution locally using npm run codepen to be able to run the provided example and agree that the problem is that they are string comparisons, as well as parseFloat fixing the issue:

image

Thanks for the fix!

@JasonGore JasonGore merged commit cceec3b into microsoft:master Jun 24, 2019
@msft-github-bot
Copy link
Contributor

🎉office-ui-fabric-react@v7.5.1 has been released which incorporates this pull request.:tada:

Handy links:

gingeroun pushed a commit to gingeroun/office-ui-fabric-react that referenced this pull request Jul 5, 2019
* fix checkForNoWrap

* add change file

* revert unintented change

* revert unintented change

* add new line to change file

* PR feedback
@microsoft microsoft locked as resolved and limited conversation to collaborators Aug 30, 2019
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.

Bidirectional FocusZone with checkForNoWrap not working correctly.

8 participants