Closed mmyelyn closed 2 weeks ago
Attention: Patch coverage is 91.66667%
with 1 line
in your changes missing coverage. Please review.
Project coverage is 80.56%. Comparing base (
6305cdd
) to head (fdb2ae5
). Report is 1 commits behind head on release/2.7.x.develop.
Files with missing lines | Patch % | Lines |
---|---|---|
...ntextualPopupDecorator/ContextualPopupDecorator.js | 91.66% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Checklist
Issue Resolved / Feature Added
When ContextualPopupDecorator or ContextualMenuDecorator is open, rotating the device in the inspector should change the popup's position. Currently the popup is fixed and does not update.
Resolution
I needed to check whether the position had not been updated or the value had been entered incorrectly. When rotated, I saw that when I refreshed, the position was calculated normally again. Therefore, the position calculation was no problem.
The position is updated with the positionContextualPopup function, which is not called when the window size changes, including when the screen is rotated. Therefore, I modified it to use ResizeObserver to detect changes in FloatLayer. (document.body may or may not have a size depending on the app)
Additional Considerations
Links
WRR-976
Comments
Enact-DCO-1.0-Signed-off-by: Hyelyn Kim (myelyn.kim@lge.com)