Skip to content

[EAG-829] Fix offset issues in several elements. #1

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

Merged

Conversation

rcarranza-carecloud
Copy link

@rcarranza-carecloud rcarranza-carecloud commented Apr 4, 2018

Ticket: https://jira.carecloud.com/browse/EAG-829
Reviewers: @jnorris-carecloud, @jleyba-carecloud
Changes:

  • Fix issues with some elements' offsets when the editor was not in the coords {x: 0, y: 0}
  • Add a small example where the editor is placed in a different coord.

Notes:

  • This solution is based on an old PR published in the original repository. Since it's outdated and with conflicts it hasn't been maintained.

**Ticket:** https://jira.carecloud.com/browse/EAG-829
**Reviewers:** @jnorris-carecloud, @jleyba-carecloud
**Changes:**
 - Fix issues with some elements' offsets with the editor was not in the coords `{x: 0, y: 0}`

// The offset should be applied only to clientX/Y if layerX/Y don't exist.
// TODO: Check if there is another way of doing this without using layerX/Y.
// The use of clientX/Y work in most cases except when there are margin/padding in parent elements

Choose a reason for hiding this comment

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

s/work/works
s/there are/there is
s/affect/affects

@rcarranza-carecloud rcarranza-carecloud merged commit 0a46768 into CareCloud:develop Apr 5, 2018
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