Skip to content

set overflow and maxlines limit to null if text is expanded, otherwis…#43

Open
veronikalaskova wants to merge 1 commit into
jesusrp98:masterfrom
veronikalaskova:expand-text-max-lines
Open

set overflow and maxlines limit to null if text is expanded, otherwis…#43
veronikalaskova wants to merge 1 commit into
jesusrp98:masterfrom
veronikalaskova:expand-text-max-lines

Conversation

@veronikalaskova

Copy link
Copy Markdown

This PR fixes getting maxLines value depending on whether text is expanded or not.

The current _maxLines method returns the value of 66 if the text widget is expanded and has an ellipsis overflow. This has 2 issues.

  1. The overflow is irrelevant when the text is expanded
  2. 2 ^ 64 returns 66

The fix sets maxLines to be null if the text is expanded, otherwise use maxLines which is passed in.

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

Successfully merging this pull request may close these issues.

1 participant