Skip to content

[Bug]: textboxes move to the right when using canvas.toSVG(...). Using JSON to save and load, all OK.  #8439

@Milner99

Description

@Milner99

CheckList

  • I agree to follow this project's Code of Conduct
  • I have read and followed the Contributing Guide
  • I have read and followed the Issue Tracker Guide
  • I have searched and referenced existing issues and discussions
  • I am filing a BUG report.
  • I have managed to reproduce the bug after upgrading to the latest version
  • I have created an accurate and minimal reproduction

Version

5.2.4

In What environments are you experiencing the problem?

Firefox, Chrome, Safari, Microsoft Edge

Node Version (if applicable)

No response

Link To Reproduction

https://jsfiddle.net/Milner99/fe7ksvb9/3/

Steps To Reproduce

  1. Add textbox to canvas
  2. Call canvas.toSVG(..) <-- with parameters within example
  3. Examine the output SVG (either in console or as file)
  4. Text will not be in the same position

Expected Behavior

I would expect the text to stay in the same relative position to the canvas.

Actual Behavior

Text seems to move to the right

Error Message & Stack Trace

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions