Skip to content

Gtk: Allow ComboBox controls to honor narrow explicit widths - #3127

Merged
cwensley merged 1 commit into
picoe:developfrom
keysharp-org:upstream/gtk-combobox-width
Oct 27, 2026
Merged

cwensley merged 1 commit into
picoe:developfrom
keysharp-org:upstream/gtk-combobox-width

Conversation

@Descolada

@Descolada Descolada commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

GTK's embedded entry minimum prevents a ComboBox from honoring narrow explicit widths, allowing it to crowd adjacent controls.

Apply the same WidthChars policy as TextBoxHandler: zero for an explicit width, and -1 when returning to automatic sizing. Keep the existing dropdown and base sizing behavior.

Validated on Ubuntu under WSL with .NET 10, GTK3 and Xvfb using a temporary shown layout: Width = 80 allocates 80 pixels (upstream still allocates 203), then Width = -1 restores the original 203-pixel automatic width.

Remove the entry's default minimum width when an explicit width is set,
matching TextBoxHandler. Restore the native default for automatic sizing.
@Descolada
Descolada marked this pull request as ready for review October 27, 2026 09:14
@cwensley cwensley added this to the 2.14.0 milestone Oct 27, 2026
@cwensley
cwensley merged commit ae8335d into picoe:develop Oct 27, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants