Skip to content

gui: support text input scrolling and rich text rise - #68

Merged
dy-tea merged 1 commit into
vlang:mainfrom
GGRei:fix/issues-57-51-text-input-rise-20260701
Jul 1, 2026
Merged

gui: support text input scrolling and rich text rise#68
dy-tea merged 1 commit into
vlang:mainfrom
GGRei:fix/issues-57-51-text-input-rise-20260701

Conversation

@GGRei

@GGRei GGRei commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds support for two GUI text improvements:

  • Native horizontal scrolling for single-line inputs without generating public/internal scroll IDs.
  • Rich text baseline rise support for superscript/subscript styling through the vglyph text path.

Fix #57
Fix #51

Codex validation : here

Details

Single-line inputs now keep their overflow state private to the input control and apply it through text geometry. This keeps icons, wrappers, and outer layouts stable while allowing caret reveal, selection, hit-testing, IME placement, and rendering to use the same horizontal text offset.

Rich text styling now forwards baseline rise values so markdown superscript/subscript and direct rich text runs render with the expected vertical offset.

Validation

  • VMODULES=/tmp/vgui_vmodules_official VJOBS=2 v test .
    • 70 passed, 1 skipped, 71 total
  • v fmt -verify ...
  • git diff --check
  • Windows static checks for the touched test files with v -os windows -check

@dy-tea dy-tea left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, tests also run fine on my linux system.

@GGRei

GGRei commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

@dy-tea Thanks for your feedback!

@GGRei
GGRei force-pushed the fix/issues-57-51-text-input-rise-20260701 branch from 9c66bca to 5b6248f Compare July 1, 2026 15:54
@dy-tea
dy-tea merged commit e91e5f3 into vlang:main Jul 1, 2026
4 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.

Add text alignment support to view_input / TextBox Markdown View example superscript/subscript numbers not small nor displaced up/down

2 participants