Community
Participate
Working Groups
Build Identifier: Build id: 20110615-0604 Titleareadialog works properly in IE9. In Firefox extra white space is put below the image. About 14 pixels in my case. The is clearly visible and causes the lower controls to be hidden in our fixed size dialogs. Reproducible: Always Steps to Reproduce: 1. Create a titlarea dialog with an image and 4 entry fields, 2 buttons. 2. Compare rendering in IE9 and firefox. 3.
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.