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

Resize visible #855

Merged
merged 2 commits into from
Jun 12, 2018
Merged

Resize visible #855

merged 2 commits into from
Jun 12, 2018

Conversation

SpencerWoo
Copy link
Member

Issue

#852

In _setUIHidden we check whether the user's interaction target is within the editor / editable area.

The issue is that dragresize dynamically generates the drag handles outside of the editable div and making editable.contains(targetNode) false and thus we're treating resizing as though we're outside the UI.

Solution

We modify the _setUIHidden check to also test whether we're resizing an image. We do this by checking whether the target is within the div with id "ckimgrsz".

Test

Chrome and FireFox.

@jbalsas
Copy link
Contributor

jbalsas commented Jun 12, 2018

Awesome, thanks @SpencerWoo !

@jbalsas jbalsas merged commit 11e2816 into liferay:1.x Jun 12, 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.

2 participants