Closed mmyelyn closed 1 week ago
Attention: Patch coverage is 91.66667%
with 1 line
in your changes missing coverage. Please review.
Project coverage is 80.86%. Comparing base (
cb11301
) to head (78dfa46
). Report is 1 commits behind head on release/2.9.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.
The current travis fail will be fixed by WRR-6697. Please check again when it's about to merge.
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)