Skip to content

fix(gtk): let the message composer grow with its text - #325

Merged
zackb merged 1 commit into
zackb:mainfrom
McMajlos:fix/composer-grow
Nov 17, 2026
Merged

zackb merged 1 commit into
zackb:mainfrom
McMajlos:fix/composer-grow

Conversation

@McMajlos

Copy link
Copy Markdown
Contributor

The composer sets max-content-height to 140, but GtkScrolledWindow ignores it unless propagate-natural-height is on, so the box stayed at its 48px minimum. With this it grows with the text up to the existing limit and then scrolls.

Testing: Fedora 45, GNOME. Typed a multi-line message: the box grows to 140px, then a scrollbar appears.

The composer sets max-content-height to 140, but GtkScrolledWindow only
honours it when the natural height is propagated. Without that the box
stayed at its 48px minimum and long messages scrolled in a single line
or two. Propagate the natural height so it grows up to the existing
limit and scrolls after that.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@zackb

zackb commented Nov 17, 2026

Copy link
Copy Markdown
Owner

Thanks!

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