Skip to content

fix(android): honor maxLines/numberOfLines in text renderer#140

Merged
V3RON merged 2 commits intocallstackincubator:mainfrom
hsravat-4590:fix/android-text-line-limits
May 4, 2026
Merged

fix(android): honor maxLines/numberOfLines in text renderer#140
V3RON merged 2 commits intocallstackincubator:mainfrom
hsravat-4590:fix/android-text-line-limits

Conversation

@hsravat-4590
Copy link
Copy Markdown
Contributor

@hsravat-4590 hsravat-4590 commented Apr 30, 2026

Summary

Fix Android RenderText to honor text line limits consistently.

What changed

  • Resolve effective line limit in priority order:
    1. maxLines prop
    2. style numberOfLines (lineLimit)
    3. Int.MAX_VALUE
  • Pass maxLines to Glance Text(...) in normal text path
  • Apply same line limit in bitmap text path (renderAsBitmap)

Why

VoltraAndroid.Text previously ignored line limits in non-bitmap rendering, causing truncation controls to appear broken/inconsistent with button/input behavior.

Related

@V3RON V3RON merged commit a5a315b into callstackincubator:main May 4, 2026
8 checks passed
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.

2 participants