Community
Participate
Working Groups
Created attachment 224596 [details] screenshot - running on Fedora 17 - 4.3M4 test build, observed on both x86 and x86_64 - Window > Preferences - go to the General - Editors - File Associations page - the top table on the page is only given two items' worth of height, but should have more - screenshot is attached
possibly another case of this same problem: - Window > Preferences - go to the Ant > Editor > Templates page - press the New... button - in the resulting dialog press the Insert Variable... button - the content assist window that is shown appears to have the default 64x64 size, but should be larger in both height and width
Tested with the latest I-build id I20130101-0800, interestingly both the scenarios described above are reproducible on Fedora 17 but not on Ubuntu 12.04 (both 64-bit builds). Still not sure what is causing the difference in behavior though...
Retesting, I still see this with the latest SWT on Ubuntu 12.04 LTS (32-bit).
Simple snippet that reproduces the problem. Table.getItemHeight() is wrong when the table is empty. import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.*; import org.eclipse.swt.*; public class Test { public static void main(String[] args) { final Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new GridLayout(1, false)); Table table = new Table(shell, SWT.BORDER); System.out.println(table.getItemHeight()); for (int i = 0; i < 4; i++) { TableItem item = new TableItem(table, SWT.NONE); item.setText("Item" + i); } System.out.println(table.getItemHeight()); shell.pack(); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } }
Fixed http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=1b3622f049a05762a91da56f70f9dd5c616b7fe3