Skip to content

Huge width value on resizing rotated element on guidelines #122

@adityakrshnn

Description

@adityakrshnn

Hi,
I encountered this bug. It does not reproduce always but does happen frequently.
Steps to reproduce:

  1. Rotate element to -90 degrees.
  2. Centre snap with vertical / element guideline.
  3. Try to resize from bottom-most edge handle.

This gives a huge width value on resize event. I am also adding my resizeStart code.

ezgif-5-98458533052c
Screenshot 2019-12-10 at 5 38 20 PM

elementResizeStart = (moveable: any, frame: any, setOrigin: any, dragStart: any, inputEvent: any) => {
    // Set origin if transform-orgin use %.
    setOrigin(['%', '%']);

    if (dragStart) {
      dragStart.set(frame.translate);
    }
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcomplete

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions