Skip to content

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 DennisSuitters/skunkworks that referenced this pull request Apr 29, 2022
Fix Handle.js box position as per PR
summernote/summernote#4283
@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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Image in table shows scale box at wrong position

2 participants