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

[Bug]: Change font size, the text box does not change. #10263

Open
7 tasks done
no-chili opened this issue Nov 11, 2024 · 1 comment
Open
7 tasks done

[Bug]: Change font size, the text box does not change. #10263

no-chili opened this issue Nov 11, 2024 · 1 comment

Comments

@no-chili
Copy link

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

6.0.2

In What environments are you experiencing the problem?

Microsoft Edge

Node Version (if applicable)

None

Link To Reproduction

none

Steps To Reproduce

  function updateText(option) {
    const active = getActiveObject();
    if ((active?.type ?? "").includes("text")) {
      active.fill = option.fill;
      active.fontWeight = option.fontWeight;
      active.fontSize = option.fontSize;
      active.fontStyle = option.fontStyle;
      active.underline = option.underline;
      active.linethrough = option.linethrough;
      active.textBackgroundColor = option.backgroundColor;
      active.fontFamily = option.fontFamily;
      active.dirty = true;
      active.setCoords();
    }
    render();
  }

Expected Behavior

The relationship between text size and font, the text box is expected to change accordingly.

Actual Behavior

截屏2024-11-11 15 20 06

Error Message & Stack Trace

none
@asturur
Copy link
Member

asturur commented Nov 11, 2024

Please make a reproducible case. This is basic functionality that works, so something is happening outside that snippet of code you posted

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