Bug 575789

Summary: [GTK] Tree with no columns and a header has zero height
Product: [Eclipse Project] Platform Reporter: Alexandr Miloslavskiy <alexandr.miloslavskiy>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: alexandr.miloslavskiy
Version: 4.13   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=546490
Whiteboard:

Description Alexandr Miloslavskiy CLA 2021-09-02 19:08:16 EDT
A snippet that demonstrates the problem:

--------
final Display display = new Display ();
final Shell shell = new Shell (display);
shell.setLayout (new GridLayout ());

final Tree tree = new Tree (shell, 0);
tree.setHeaderVisible (true);
new TreeItem(tree, 0).setText ("0");

shell.pack ();
shell.open ();

while (!shell.isDisposed ()) {
	if (!display.readAndDispatch ()) {
		display.sleep ();
	}
}

display.dispose ();
--------

The bug occurs since Bug 546490