Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 352624

Summary: Error dialog in RAP does not scale or wrap its content as expected
Product: [RT] RAP Reporter: Moritz Post <mpost>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: ASSIGNED --- QA Contact:
Severity: normal    
Priority: P3    
Version: 1.4   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Screenshot of the problem
none
Controls Demo -> Dialogs Tab -> ErrorDialog
none
Manually resized RCP ErrorDialog none

Description Moritz Post CLA 2011-07-20 12:16:09 EDT
When the generic eclipse error dialog is shown in rap the content does not fit into the dialog. the dialog should wrap the content or adjust its size as on the RCP platform.

See attached screenshot.
Comment 1 Ivan Furnadjiev CLA 2011-07-21 03:06:18 EDT
Moritz, where is the screenshot :-) Could you provide a small snippet that demonstrate the problem?
Comment 2 Moritz Post CLA 2011-07-21 04:47:37 EDT
Created attachment 200063 [details]
Screenshot of the problem

Ah my dislike for bugzilla is justified! I have witnesses that have seen me attach the image. Anyways... attached again. Hope it is working now.

I can not give you sample code though. sorry.
Comment 3 Ivan Furnadjiev CLA 2011-07-21 05:03:22 EDT
Created attachment 200066 [details]
Controls Demo -> Dialogs Tab -> ErrorDialog

I can't reproduce it with Controls Demo -> Dialogs Tab. JFace ErrorDialog is used there. Everything wraps OK.
Comment 4 Ivan Furnadjiev CLA 2011-07-21 06:07:55 EDT
Some more information about the screenshot in comment #2:
1. The ErrorDialog is resized manually - that's why the buttons are cut off.
2. There is a very long text in the dialog without spaces.
In comparison to RCP (see next screenshot):
1. When resizing the dialog manually the buttons are cut off in RCP as well.
2. When resizing the dialog manually the text with/without spaces wraps in RCP, but not in RAP.
3. The text without spaces wraps initially (when dialog is opened) in RCP, but not in RAP.
Comment 5 Ivan Furnadjiev CLA 2011-07-21 06:08:46 EDT
Created attachment 200074 [details]
Manually resized RCP ErrorDialog