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

Bug 348101

Summary: behavior of getSize() for ScrollBar on Linux is odd
Product: [Eclipse Project] Platform Reporter: lilywang
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: ericwill
Version: 3.6.2Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description lilywang CLA 2011-06-02 12:55:22 EDT
For the code I am testing, it calls 
   Scrollable parent = bar.getParent();
   Point parentSize = parent.getSize();
   Point size = bar.getSize();

   **ScrollBar bar

On Windows, parentSize would be (130,477), and size would be (18,459), which is a reasonable scrollbar size. 

The same code executed on linux yields parentsize (133, 625), and size would be (15,60). From inspecting the UI, the vertical scrollbar is properly displayed and x is reasonable, but y should be at least ~600 -- if getSize() is to return the height of the receiver on linux as well. 

Tested on RADO803-I20110526_1751, Linux RHEL 5.5
Comment 1 Eric Williams CLA 2018-05-15 15:47:40 EDT
Do you have a snippet for this bug?
Comment 2 Eric Williams CLA 2018-05-30 10:42:14 EDT
Closing due to lack of response. Please re-open this ticket if the issue is reproducible on 4.8 with GTK3.22.