Community
Participate
Working Groups
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/
Created attachment 196635 [details] Scrollbar disapeared.
Created attachment 196636 [details] Scrollbar visible.
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?
In order to make it works, I think you have to update the scrolledComposite minWidth in dialog resize event.
(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.
(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).
I will close it as invalid as SWT and RAP behave the same. Please reopen if you disagree.