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 image handle #4283

Merged
merged 1 commit into from
Apr 29, 2022
Merged

Fix image handle #4283

merged 1 commit into from
Apr 29, 2022

Conversation

dmx-patrick
Copy link
Contributor

What does this PR do?

  • Fixes positioning of the image handle

Where should the reviewer start?

  • start on the src/js/module/Handle.js

How should this be manually tested?

See the relevant ticket.

Any background context you want to provide?

Removed the jQuery position() method and replaced it with getBoundingClientRect().
The position() method returned the offset from the table cell and not the editor area.
New code gets position of image and editing area to calculate the offset.

What are the relevant tickets?

Fixes #4242

Checklist

  • Added relevant tests or not required
  • Didn't break anything

DennisSuitters pushed a commit to summernote/skunkworks that referenced this pull request Apr 29, 2022
Fix Handle.js box position as per PR
summernote/summernote#4283
@DennisSuitters DennisSuitters added the Skunked Feature or Bug Patched into the Skunkworks Project label Apr 29, 2022
@DennisSuitters DennisSuitters merged commit cf7605a into summernote:develop Apr 29, 2022
@DennisSuitters
Copy link
Member

Thanks for your contribution, this was also merged into the Skunkworks Repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skunked Feature or Bug Patched into the Skunkworks Project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Image in table shows scale box at wrong position
2 participants