Bug 348101 - behavior of getSize() for ScrollBar on Linux is odd
Summary: behavior of getSize() for ScrollBar on Linux is odd
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.6.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2011-06-02 12:55 EDT by lilywang CLA
Modified: 2018-05-30 10:42 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.