Skip to content

How to limit the maxWidth of textbox? #7891

Answered by ShaMan123
Jiiiin asked this question in Q&A
Discussion options

You must be logged in to vote

This is the method that changes the textbox width

_wrapLine: function(_line, lineIndex, desiredWidth, reservedSpace) {

Here you can override and check what you need and even return a different value:

_measureWord: function(word, lineIndex, charOffset) {

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
5 replies
@ShaMan123
Comment options

@ShaMan123
Comment options

@Jiiiin
Comment options

@asturur
Comment options

@ShaMan123
Comment options

Answer selected by ShaMan123
Comment options

You must be logged in to vote
2 replies
@jialan0229
Comment options

@ShaMan123
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #7888 on April 19, 2022 16:39.