Community
Participate
Working Groups
- 3.7RC3 build - observed on RHEL6 on PPC64, probably happens on all gtk platforms - run the snippet below, note that its horizontal scrollbar appears fine - now uncomment the line in the MeasureItem listener, run the snippet again, and note that the needed horizontal scrollbar is not shown public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setBounds(10,10,200,250); final Table table = new Table(shell, SWT.NONE); table.setBounds(10,10,100,200); table.setLinesVisible(true); for (int i = 0; i < 5; i++) { new TableItem(table, SWT.NONE).setText("an item that's a bit long " + i); } table.addListener(SWT.MeasureItem, new Listener() { public void handleEvent(Event event) { // table.getClientArea(); // <--- } }); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); }
I cannot reproduce this issue on 4.8 M7, GTK3.22, and Fedora 28. Please comment if the issue reappears.