| Summary: | [Menu] Layout is broken with big images | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Benjamin Muskalla <b.muskalla> | ||||
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | ||||||
| Version: | 1.3 | ||||||
| Target Milestone: | 1.3 M2 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Benjamin Muskalla
Snippet:
public class DemoWorkbench implements IEntryPoint {
public int createUI() {
Display display = new Display();
Shell shell = new Shell( display );
shell.setLayout( new FillLayout() );
Composite c1 = new Composite( shell, SWT.BORDER );
c1.setSize( 100, 100 );
Menu menu = new Menu( shell, SWT.POP_UP );
createItem( display, menu );
createItem( display, menu );
c1.setMenu( menu );
shell.setSize( 300, 300 );
shell.open();
while( !shell.isDisposed() ) {
if( !display.readAndDispatch() )
display.sleep();
}
return 0;
}
private void createItem( Display display, Menu menu ) {
MenuItem item = new MenuItem( menu, SWT.PUSH );
item.setText( "Popup" );
item.setImage( display.getSystemImage( SWT.ICON_ERROR ) );
}
Created attachment 140584 [details]
screenshot
.
Fixed by re-implementing the client-side menu (see bug 287097) |