Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 351043 - [TabbedProperties] Scroll bar not behaving as expected in a tabbed properties view.
Summary: [TabbedProperties] Scroll bar not behaving as expected in a tabbed properties...
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.6.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-04 01:26 EDT by gourishanker.chekatmarla CLA
Modified: 2019-11-14 03:27 EST (History)
3 users (show)

See Also:


Attachments
(Image1) A custom view and Properties View is shown (32.86 KB, image/pjpeg)
2011-07-04 01:30 EDT, gourishanker.chekatmarla CLA
no flags Details
(Image2) Tree Viewer with its contents and scroll bar shown properly. (34.89 KB, image/pjpeg)
2011-07-04 01:33 EDT, gourishanker.chekatmarla CLA
no flags Details
(Image3) TreeViewer getting resized automatically. (38.24 KB, image/pjpeg)
2011-07-04 01:34 EDT, gourishanker.chekatmarla CLA
no flags Details
(Image4) Scroll bar not appearing for TreeViewer. (36.13 KB, image/pjpeg)
2011-07-04 01:35 EDT, gourishanker.chekatmarla CLA
no flags Details
The plugin project (18.86 KB, application/x-zip-compressed)
2011-07-04 01:35 EDT, gourishanker.chekatmarla CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description gourishanker.chekatmarla CLA 2011-07-04 01:26:45 EDT
Build Identifier: 3.6.2.v3659c

I have attached 4 screen shots explaining the issue. Also I have attached my plugin project as a zip file. Unzip and import this project into eclipse and run the application in the PDE perspective.(Please let me know if you need more info. on running a plugin project.)


Reproducible: Always

Steps to Reproduce:
After launching the eclipse with this plugin, do the following steps to reproduce the issue :

1. Goto Windows --> Show View --> Other --> Tabbed Properties View --> Tabbed Properties Example View. Open this view.
2. A new view will be opened as shown in Image1.
3. Now again goto Windows --> Show View --> Properties. Open the properties view.
4. Arrange the views as shown in Image1.

5. Click on the text 'Button' in the Tabbed Properties Example View. This will open a 'General' property section in the Properties View as shown in all the images.

6. In the Properties View, General tab , click on the button 'Click to Add' multiple times which adds child elements to a Tree Viewer. Add elements until you get a scroll bar for the Tree Viewer as shown in Image2.
7. Now resize the Properties View to increase the height as shown in the Image3. 
The scroll bar for the Tree Viewer disappears.

8. When I resize the Properties View to decrease the height as shown in Image4, a scroll bar appears for the properties view instead of the Tree Viewer.
How do I get the scroll bar back for the Tree Viewer ?
Comment 1 gourishanker.chekatmarla CLA 2011-07-04 01:30:37 EDT
Created attachment 199020 [details]
(Image1) A custom view and Properties View is shown
Comment 2 gourishanker.chekatmarla CLA 2011-07-04 01:33:11 EDT
Created attachment 199021 [details]
(Image2) Tree Viewer with its contents and scroll bar shown properly.
Comment 3 gourishanker.chekatmarla CLA 2011-07-04 01:34:36 EDT
Created attachment 199022 [details]
(Image3) TreeViewer getting resized automatically.
Comment 4 gourishanker.chekatmarla CLA 2011-07-04 01:35:20 EDT
Created attachment 199023 [details]
(Image4) Scroll bar not appearing for TreeViewer.
Comment 5 gourishanker.chekatmarla CLA 2011-07-04 01:35:45 EDT
Created attachment 199024 [details]
The plugin project
Comment 6 Felipe Heidrich CLA 2011-07-05 11:20:46 EDT
At the SWT level, it is up to layout manager to resize the tree view smaller (than making the view bigger).
At the Eclipse-UI level, I don't know who is responsible for this work (Eclipse-UI or the application).

I suspect it is the application (in which case this is something you need to fix in your code).
Comment 7 gourishanker.chekatmarla CLA 2011-07-06 00:21:47 EDT
Thanks for looking into this issue.


We have been working on this issue for the past 6 months and we could not provide any solution.

Our observations :

1. There is no issue with the scroll bar when I run the composite ( that has   the TreeViewer) as a stand alone i.e. from the main method and not from the plugin.
   When I incorporate this Composite into the Tabbed Property Section then we are facing this issue.

2.  After the step 7 (Image 3), whether I move the Properties View sash up or down, the height of the TreeViewer is increased (hence the scroll bar disappears).
    If I can stop the resizing of the TreeViewer when I resize the Properties View then my problem is solved.


It would be great if you can provide me a solution. I have attached the application code, the plugin project.


Thanks in Advance
--Gouri
Comment 8 Lars Vogel CLA 2019-11-14 03:27:06 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

If the bug is still relevant, please remove the "stalebug" whiteboard tag.