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]: Textbox does not wrap word when their is no space in words. #9881

Closed
7 tasks done
niketaOptimumnbrew opened this issue May 14, 2024 · 1 comment
Closed
7 tasks done

Comments

@niketaOptimumnbrew
Copy link

niketaOptimumnbrew commented May 14, 2024

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

In What environments are you experiencing the problem?

Chrome, Safari

Node Version (if applicable)

14.20.0

Link To Reproduction

https://jsfiddle.net/Niketa_patel/fo5q1bzt/4/

Steps To Reproduce

  1. type text continusouly without space.
  2. it'll increase textbox width even if textbox has static width.
  3. it does not wrap word when words has no space.

Expected Behavior

  • should wrap word when their is no space.
  • should not extend the width when object have static width.

Actual Behavior

  • it does not wrap word when their is no space in words.
  • it automatically increase width on text addition event if static width is set.

Thanks.

@niketaOptimumnbrew niketaOptimumnbrew changed the title [Bug]: Textbox does not wrap word when their is not space in words. [Bug]: Textbox does not wrap word when their is no space in words. May 14, 2024
@asturur
Copy link
Member

asturur commented May 19, 2024

@niketaOptimumnbrew there is not a wrapping method that behaves between the normal english wrapping and the option that is called 'splitByGrapheme'.
This is not a bug is a feature request and 5.x is no more in development.
What you call bug is how the text in fabricJS works for now.

@asturur asturur closed this as completed May 19, 2024
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