Skip to content

Text is still compressed when maxWidth is null #1071

@vwmberry95

Description

@vwmberry95

Issue Details

  • Version used (Ex; 1.0):

1.0.0

  • Describe whats happening (Include any relevant console errors, a Gist is preferred for longer errors):

According to the documentation:

"The maximum width to draw the text. If maxWidth is specified (not null), the text will be condensed or shrunk to make it fit in this width." However, the text still gets condensed after large amounts of text. It appears to get capped when drawing the text by setting 0xFFFF: https://createjs.com/docs/easeljs/files/easeljs_display_Text.js.html#l401.

  • OS & Browser version (Please be specific) (Ex; Windows 10 Home, Chrome 62.0.3202.94):

Android 8/9/10 Chrome 85.0.4183.81
Windows 10/11 Chrome 100.0.4896.127 (latest)

  • Do you know of any workarounds?

Set maxWidth = Number.MAX_VALUE

  • Provide any extra details that will help us fix your issue. Including a link to a CodePen.io or JSFiddle.net example that shows the issue in isolation will greatly increase the chance of getting a quick response.

http://jsfiddle.net/ft2v1Lem/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions