Skip to content

[Gtk] Fix Tree preferred size becoming invisible after style toggle#3309

Open
akurtakov wants to merge 1 commit into
eclipse-platform:masterfrom
akurtakov:3025
Open

[Gtk] Fix Tree preferred size becoming invisible after style toggle#3309
akurtakov wants to merge 1 commit into
eclipse-platform:masterfrom
akurtakov:3025

Conversation

@akurtakov
Copy link
Copy Markdown
Member

When a Tree with no explicit columns is laid out with SWT.DEFAULT size hints (e.g. GridData(SWT.DEFAULT, SWT.DEFAULT)), the GTK preferred-size call on the not-yet-rendered GtkTreeView returns width 0. The resulting zero-width allocation triggers the ZERO_WIDTH hide path, making the widget invisible.

When a Tree with no explicit columns is laid out with SWT.DEFAULT
size hints (e.g. GridData(SWT.DEFAULT, SWT.DEFAULT)), the GTK
preferred-size call on the not-yet-rendered GtkTreeView returns width 0.
The resulting zero-width allocation triggers the ZERO_WIDTH hide path,
making the widget invisible.
@akurtakov
Copy link
Copy Markdown
Member Author

Fixes #3025

@akurtakov akurtakov self-assigned this May 15, 2026
@akurtakov
Copy link
Copy Markdown
Member Author

This is alternative fix for a similar problem to https://bugs.eclipse.org/bugs/show_bug.cgi?id=465056 but more dynamic. I'll switch Table to this approach too when we open next stream.

@github-actions
Copy link
Copy Markdown
Contributor

Test Results (linux)

   94 files  ±0     94 suites  ±0   15m 11s ⏱️ +29s
4 597 tests ±0  4 373 ✅ ±0  224 💤 ±0  0 ❌ ±0 
3 383 runs  ±0  3 308 ✅ ±0   75 💤 ±0  0 ❌ ±0 

Results for commit 7d2ce46. ± Comparison against base commit 7f9089e.

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