Community
Participate
Working Groups
Created attachment 268739 [details] image displaying the rendering problem During the development of a Demo, I realized the part stack renderer does a bad rendering for Part tool controls.
Update: this is a refresh problem, and there is a workaround, which consists in requesting redraw to the parent container. Below, you can see the workaround in action @PostConstruct public void createControls(Composite parent) { this.shell = parent.getShell(); parent.getParent().setRedraw(true); // <-- WORKAROUND ! parent.setLayout(new FillLayout(SWT.HORIZONTAL)); composite = new Composite(parent, SWT.NONE); GridLayout gl_composite = new GridLayout(2, false); composite.setLayout(gl_composite); btnNewTransaction = new Button(composite, SWT.NONE); btnNewTransaction.setText("New transaction"); comboViewer = new ComboViewer(composite, SWT.NONE); combo = comboViewer.getCombo(); combo.setItems(new String[] {"Deposit", "Withdrawal", "Charge", "Transfer"}); combo.select(0); }
*** This bug has been marked as a duplicate of bug 471313 ***