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

Bug 347133

Summary: vertical scrollbar of TitleAreaDialog disappears in certain cases
Product: [RT] RAP Reporter: Steffen <steffen>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: oliver
Version: 1.4   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Code-snippet to reproduce the problem.
none
Scrollbar disapeared.
none
Scrollbar visible. none

Description Steffen CLA 2011-05-25 07:02:12 EDT
Created attachment 196534 [details]
Code-snippet to reproduce the problem.

Description of the problem:
Use a Dialog of type TitleAreaDialog which contains a lot of controls (i.e. of type text, three in a row and sixty in height). Add the controls to a ScrolledComposite. At the bottom use i.e. three Buttons to get a certain width. (see size_normal.png in file attachments)

Now resize the width of the shell smaller than the width of the buttons at the bottom (button-bar). In my case the vertical scrollbar disapears (in my opinion is that not correct therefore a bug). (see size_small.png in file attachments).


Code-snippet to reproduce the problem:
I have added EditTest.java which is a code-snippet to reproduce the problem.


Some further details:
Library: RWT 1.4M7


Forum-Thread:
http://www.eclipse.org/forums/index.php/t/210149/
Comment 1 Steffen CLA 2011-05-26 03:34:45 EDT
Created attachment 196635 [details]
Scrollbar disapeared.
Comment 2 Steffen CLA 2011-05-26 03:35:05 EDT
Created attachment 196636 [details]
Scrollbar visible.
Comment 3 Ivan Furnadjiev CLA 2011-05-26 04:39:12 EDT
Hi Steffen, just checked your code in SWT and RAP behave exactly the same. That's why, I think that this bug is invalid. Could you confirm this?
Comment 4 Ivan Furnadjiev CLA 2011-05-26 04:49:32 EDT
In order to make it works, I think you have to update the scrolledComposite minWidth in dialog resize event.
Comment 5 Steffen CLA 2011-05-26 05:56:34 EDT
(In reply to comment #4)
> In order to make it works, I think you have to update the scrolledComposite
> minWidth in dialog resize event.

Okay, but i do not understand to which value i have to set the mindWidth in the resize event. If i fit it to the shell-width it does not change the problem, that the vertical scrollbar disapears.
Comment 6 Ivan Furnadjiev CLA 2011-05-26 06:56:24 EDT
(In reply to comment #5)
OK... just tested it and setting the minWidth did not help as you mention. The vertical scrollbar is not visible as it is cut-off in the same way like the buttons bar. If you increase the dialog width a little bit (resize by mouse) you will see that the scrollbar is there. The minimum width of the scrolledComposite is limited by the width of the buttons bar (they are in the same grid layout). I think that the solution of your problem is to set the minimumSize of the dialog shell. Thus, it will not be possible to make the dialog smaller in width and the buttons bar will not be cut-off (same for the scrolledComposite).
Comment 7 Ivan Furnadjiev CLA 2011-05-26 07:51:11 EDT
I will close it as invalid as SWT and RAP behave the same. Please reopen if you disagree.