moveable icon indicating copy to clipboard operation
moveable copied to clipboard

getElementInfo method return error value when target element set width

Open josselu opened this issue 3 years ago • 3 comments

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

josselu avatar Jul 28 '22 09:07 josselu

@Lucienrl

Test [email protected] version.

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

daybrush avatar Jul 28 '22 15:07 daybrush

@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.

josselu avatar Jul 29 '22 02:07 josselu

@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 :)

daybrush avatar Aug 01 '22 18:08 daybrush