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

Mouse icons on customized controls don't change after padding and cornerSize, before moving object. #5228

Closed
jorgeecardona opened this issue Sep 11, 2018 · 2 comments

Comments

@jorgeecardona
Copy link

Version

2.3.6

Test Case

In the official demo page for controls customization: http://fabricjs.com/controls-customization

Steps to reproduce

  1. Notice the locations where the mouse icon changes when hovering on the controls.
  2. Change padding to its maximum.
  3. Without clicking notice that the mouse icon doesn't change when hovering on the controls.
  4. Move the object.
  5. Notice that now the icons react properly when hovering on the controls.

Expected Behavior

In step 3 we should expect for the correct mouse icons when hovering on the controls.

Actual Behavior

See the steps to reproduce.

@jorgeecardona jorgeecardona changed the title Muse icons on customized controls don't change after padding and cornerSize, before moving object. Mouse icons on customized controls don't change after padding and cornerSize, before moving object. Sep 11, 2018
@jorgeecardona
Copy link
Author

In my own test just adding object.setCoords(); after the padding and cornerSize are set solves the problem.

@asturur
Copy link
Member

asturur commented Sep 16, 2018

i updated the demo and i will update it on the next website update.
Thanks

@asturur asturur closed this as completed Sep 16, 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

No branches or pull requests

2 participants