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

getElementInfo method return error value when target element set width #709

Open
josselu opened this issue Jul 28, 2022 · 3 comments
Open
Labels
bug Something isn't working complete
Milestone

Comments

@josselu
Copy link

josselu commented Jul 28, 2022

Environments

  • Framework name: -
  • Framework version: -
  • Moveable Component version: 0.36.0
  • Testable Address(optional): -

Description

Hello, When the target element's width property is set to a specific value, calling the getElementInfo method returns the wrong value "NaN", resulting in the overlay not being displayed correctly.

The target element that width is set:
image

The return value of the "getElementInfo":
image

Moveable display:
image

@daybrush daybrush added the bug Something isn't working label Jul 28, 2022
@daybrush
Copy link
Owner

@Lucienrl

Test react-moveable@0.37.0-beta.0 version.

The specific situation is unknown, but a defense code has been added.

@josselu
Copy link
Author

josselu commented Jul 29, 2022

@daybrush , thank you. I just tried 0.37.0-beta.0, it looks all right. Yesterday I rolled back to v0.34.2, which works fine.

@daybrush daybrush added this to the 0.34.0 milestone Aug 1, 2022
@daybrush
Copy link
Owner

daybrush commented Aug 1, 2022

@Lucienrl

  • lit-moveable 0.11.2
  • moveable 0.34.2
  • preact-moveable 0.36.2
  • react-compat-moveable 0.22.2
  • react-moveable 0.37.2
  • svelte-moveable 0.26.2
  • vue-moveable 2.0.0-beta.30
  • vue3-moveable 0.9.2
  • ngx-moveable 0.31.2

moveable's public version is released. Thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working complete
Projects
None yet
Development

No branches or pull requests

2 participants