Skip to content

fix(popup): Use reference id instead of shape#629

Merged
ConradJChan merged 6 commits intobox:masterfrom
ConradJChan:fix-region-creation-resize
Nov 2, 2020
Merged

fix(popup): Use reference id instead of shape#629
ConradJChan merged 6 commits intobox:masterfrom
ConradJChan:fix-region-creation-resize

Conversation

@ConradJChan
Copy link
Contributor

@ConradJChan ConradJChan commented Oct 27, 2020

Changed the strategy for communicating where the staged annotation is from the creator to the popup layer from storing a reference shape in redux to a reference id which the popup layer uses instead to query the actual DOM element -- which allows PopperJS to do what it does best and updates the popup to follow the element as it resizes and shifts based on zoom or window resize actions

TODO:

  • unit tests
  • cross browser testing
  • regression testing for region & highlight creation

@ConradJChan ConradJChan force-pushed the fix-region-creation-resize branch from bb7a5af to 58b1e30 Compare October 28, 2020 17:41
@ConradJChan ConradJChan force-pushed the fix-region-creation-resize branch from 58b1e30 to f292d34 Compare October 28, 2020 17:44
@ConradJChan ConradJChan changed the title fix(regions): Handle staged resize event fix(popup): Use reference id instead of shape Oct 28, 2020
jstoffan
jstoffan previously approved these changes Oct 28, 2020
@jstoffan jstoffan self-requested a review October 28, 2020 21:48
@ConradJChan ConradJChan marked this pull request as ready for review October 29, 2020 04:35
@ConradJChan ConradJChan requested a review from a team as a code owner October 29, 2020 04:35
@ConradJChan ConradJChan force-pushed the fix-region-creation-resize branch from a139b13 to 7dedb6a Compare October 29, 2020 04:41
jstoffan
jstoffan previously approved these changes Oct 30, 2020
Copy link
Collaborator

@jstoffan jstoffan left a comment

Choose a reason for hiding this comment

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

Nice!

@ConradJChan ConradJChan merged commit 2a0e8c6 into box:master Nov 2, 2020
@ConradJChan ConradJChan deleted the fix-region-creation-resize branch November 2, 2020 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants