Bug 575789 - [GTK] Tree with no columns and a header has zero height
Summary: [GTK] Tree with no columns and a header has zero height
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.13   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-02 19:08 EDT by Alexandr Miloslavskiy CLA
Modified: 2021-09-02 19:08 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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