| Summary: | Incorrect Text Size Determination for JFace Dialog | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Scott Helsby <scott.helsby> | ||||
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | bugs.eclipse.org | ||||
| Version: | unspecified | ||||||
| Target Milestone: | 2.2 M1 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Scott Helsby
Created attachment 215404 [details]
An EntryPoint class that opens a dialog showing the problem
As a workaround override the Dialog#configureShell as follows:
@Override
protected void configureShell( Shell shell ) {
super.configureShell( shell );
// Workaround for RWT Text Size Determination
shell.addControlListener( new ControlAdapter() {
@Override
public void controlResized( ControlEvent e ) {
initializeBounds();
}
} );
}
This is not related to Chinese in particular. The initializeBounds method is not called when the TSD results arrive, but it should be. I'd suggest to add this resize listener to the Dialog framework. Fixed with commit 18f4b7e1b5195e04f2431f8f1db90f1897b8a6b8. |