Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(drawing): reposition toolbar on drawing #657

Merged
merged 28 commits into from
Jan 4, 2021

Conversation

ChenCodes
Copy link
Contributor

@ChenCodes ChenCodes commented Dec 16, 2020

Purpose:
As we will no longer be implementing the drag / drop approach for the toolbar, the alternative solution to address keeping the drawing toolbar out of the user's way is to reposition the drawing toolbar above the highest drawn annotation.

Changes in this PR:

  • create a new instance of the PopupBase every time annotations changes
  • update unit tests
  • cross browser testing

Demo:
ezgif com-gif-maker (4)

@ChenCodes ChenCodes marked this pull request as ready for review December 17, 2020 00:08
@ChenCodes ChenCodes requested a review from a team as a code owner December 17, 2020 00:08
src/components/Popups/PopupDrawingToolbar.tsx Outdated Show resolved Hide resolved
src/components/Popups/PopupDrawingToolbar.tsx Outdated Show resolved Hide resolved
src/components/Popups/PopupDrawingToolbar.tsx Outdated Show resolved Hide resolved
src/drawing/DrawingAnnotations.tsx Outdated Show resolved Hide resolved
src/components/Popups/PopupDrawingToolbar.tsx Outdated Show resolved Hide resolved
src/drawing/DrawingAnnotations.tsx Outdated Show resolved Hide resolved
src/drawing/__tests__/DrawingAnnotations-test.tsx Outdated Show resolved Hide resolved
src/drawing/__tests__/DrawingAnnotations-test.tsx Outdated Show resolved Hide resolved
src/drawing/__tests__/DrawingAnnotations-test.tsx Outdated Show resolved Hide resolved
@ChenCodes ChenCodes merged commit 98412f1 into box:master Jan 4, 2021
@ChenCodes ChenCodes deleted the reposition-toolbar-on-drawing branch January 4, 2021 21:52
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