-
Notifications
You must be signed in to change notification settings - Fork 3
Added sticky settings functionality to flyout #53
Conversation
…to sticky-settings and resolved conflict
Codecov Report
@@ Coverage Diff @@
## master #53 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 11 11
Lines 452 474 +22
Branches 74 78 +4
=====================================
+ Hits 452 474 +22
Continue to review full report at Codecov.
|
{ | ||
flyoutWidth: this.flyoutWidth | ||
} | ||
).subscribe( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs a takeUntil()
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a take(1)
fixture.detectChanges(); | ||
tick(); | ||
spyOn(SkyFlyoutComponent.prototype, 'onMouseMove').and.callThrough(); | ||
spyOn(SkyFlyoutComponent.prototype, 'onHandleRelease').and.callThrough(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you spying on these two mouse events? I don't see you utilizing them anywhere...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There were two tests like this due to copy pasta. I've fixed them both.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two things. Also, what should happen if sticky settings returns a width that is outside of the max/min widths?
@Blackbaud-AlexKingman ready for you again. I changed how min and max detection happens so that we no longer check for that until after we grab the sticky settings. There was also some bugginess with timing with the sticky settings - these changes fix that. |
No description provided.