Skip to content

Expose bounds and min_bounds publicly through text_editor::Content - #3433

Open
Byunk wants to merge 1 commit into
iced-rs:masterfrom
Byunk:expose-bounds-and-min-bounds-from-text-editor
Open

Expose bounds and min_bounds publicly through text_editor::Content#3433
Byunk wants to merge 1 commit into
iced-rs:masterfrom
Byunk:expose-bounds-and-min-bounds-from-text-editor

Conversation

@Byunk

@Byunk Byunk commented Aug 24, 2026

Copy link
Copy Markdown

This PR exposes bounds and min_bounds publicly through text_editor::Content

potential use case: a spreadsheet app, for example, extends the text editor by the width of the next cell (please refer to the attached recording). Since the cell size is dynamic, there is no way to implement this precisely using layout::Limits. In this situation, exposing the raw bounds would allow the caller to compute the layout bounds on demand

Screen.Recording.2026-08-24.at.5.06.54.PM.mov

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