Community
Participate
Working Groups
RAP 1.2RC3 * Set an image on a CTabItem * CTabitem is not high enough the display the whole image Snippet ------------------------------- package entrypoint; import org.eclipse.rwt.lifecycle.IEntryPoint; import org.eclipse.swt.SWT; import org.eclipse.swt.custom.CTabFolder; import org.eclipse.swt.custom.CTabItem; import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell; public class EntryPoint1 implements IEntryPoint { @Override public int createUI() { Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new GridLayout(1, false)); CTabFolder folder = new CTabFolder(shell, SWT.NONE); CTabItem cTabItem = new CTabItem(folder, SWT.CLOSE); cTabItem.setText("vfoo"); cTabItem.setImage(display.getSystemImage(SWT.ICON_ERROR)); shell.pack(); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); return 0; } }
Created attachment 138661 [details] comparison rwt <> gtk .
Created attachment 139059 [details] patch Suggested patch to update the tabheight when a new image is set
Fixed in CVS HEAD with the attached patch.