-
Notifications
You must be signed in to change notification settings - Fork 72
[terra-collapsible-menu-view] Flicker issue when wrapped with clinical header #1965
Conversation
); | ||
}; | ||
|
||
export default FilePathwithClinicalHeader; |
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.
export default FilePathwithClinicalHeader; | |
export default FilePathwithActionHeader; |
can we get the filename also updated to action header
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.
Updated.
Commit: a09f4db
Thanks
} | ||
// to calculate available space when resized only when menuButtonContainerWidth is used | ||
if ((window.innerWidth - menuButtonWidth) < availableWidth) { | ||
availableWidth = window.innerWidth - menuButtonWidth; |
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.
will this be having -ve value ..?? I think we can use Math.Abs() if we are not sure edge case where it could be -ve
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 Math.abs to avoid -ve values.
c66f453
Thanks
Summary
What was changed:
Updated to calculate the available space from the collapsible menu container div when collapsible menu view component is wrapped with clinical header component.
Why it was changed:
When a file path with a small label is added dynamically inside a clinical header it starts to flicker.
Testing
This change was tested using:
Reviews
In addition to engineering reviews, this PR needs:
Additional Details
Screen.Recording.2024-01-09.at.11.01.39.AM.mov
This PR resolves:
UXPLATFORM-10099
Thank you for contributing to Terra.
@cerner/terra