| Summary: | TitleAreaDialog has a gap below the image in Firefox 6 | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Arvinder Birdi <arvindersbirdi> | ||||||||
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> | ||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||
| Severity: | normal | ||||||||||
| Priority: | P3 | CC: | tbuschto | ||||||||
| Version: | 1.4 | ||||||||||
| Target Milestone: | 1.5 M3 | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Windows 7 | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Arvinder Birdi
Could you provide a self running snippet that demonstrate the problem?
Shell activeShell = PlatformUI.getWorkbench().getDisplay().getActiveShell();
TitleAreaDialog dialog = new TitleAreaDialog(activeShell);
dialog.create();
// Title does NOT affect the problem.
// dialog.setTitle("The Title");
// Setting a message CAUSES the problem.
dialog.setMessage("A message.");
dialog.open();
========================================================================
I have tested it on 3 windows 7 (64bit) machines with firefox 7.
It happens on 2 out of 3 of them.
Created attachment 204548 [details]
Modified source file in "RAP Application with a view" Template
File->defect will launch the TitleAreaDialog with the problem.
Created attachment 204549 [details]
screen shot of defect
Created attachment 204550 [details]
Title only, without message: works
I looked at the outline in the browser debugger. It looks like the height of the html textarea used to show the message is too large and extends below the image. This works in RCP. Problem appears on machines where firefox has gpu acceleration enabled. Use URL "about:support" to check. Then under Options, Advanced, Browsing: Unselect "Use hardware acceleration when available" and restart. This fixes the problem. When it is enabled again the problem reappears. For me it is reproducible in all browsers. This was a text size determination issue. TitleAreaDialog has a field messageLabelHeight. Based on this field, which was calculated only once ( in TitleAreaDialog#createTitleArea ), the dialog layout is calculated. Fixed by updating the messageLabelHeight and do layoutForNewMessage in the messageLabel resize event. Changes are in CVS HEAD. |