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

IText area doesn't enlarge in width, while typing text. When textAlign: 'justify' #2967

Closed
OperKH opened this issue May 13, 2016 · 4 comments
Labels

Comments

@OperKH
Copy link

OperKH commented May 13, 2016

Version

1.6.1

Test Case

http://jsfiddle.net/2ogffpwq/

Steps to reproduce

  1. Press at the middle of "add_letters_here" word.
  2. Start typing a lot of letters inside this word without spaces.

Expected Behavior

IText area should be enlarged in width, when first string became to large to fit in IText area.

Actual Behavior

IText area didn't changed in size.
Instead of that a big word stars overflow other words in string, and even could be wider, then IText
http://recordit.co/xROvhWYti1

Additional info

This bug doesn't appears when textAlign is "left", "center" or "right".

@asturur
Copy link
Member

asturur commented May 13, 2016

thanks for posting from the twitter.

@OperKH
Copy link
Author

OperKH commented May 13, 2016

And reducing width on justified IText, whe deleting letters, doesn't work to.
http://recordit.co/KetJPrw2kp

@asturur asturur added the bug label May 13, 2016
@asturur
Copy link
Member

asturur commented May 14, 2016

Ok the problem here is that we allow for negative space width. thanks for spotting

@asturur
Copy link
Member

asturur commented May 14, 2016

Just a note of things to solve:
Forcing the text in left justify solves majority of things.
exporting in svg has some defect, not related to this bug but to fix before merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants