Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363902 - Error in scrollbar setThumb
Summary: Error in scrollbar setThumb
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.2   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-16 06:35 EST by Vladimír Hájek CLA
Modified: 2019-11-14 03:47 EST (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 Vladimír Hájek CLA 2011-11-16 06:35:27 EST
Build Identifier: 20110615-0604

There is an error in org.eclipse.swt.widgets.Scrollbar in method setThumb.

if (info.nPage != 0) info.nPage++; // this line should not be there

Because of this line it is not possible create scrollbar with nPage==1.


Reproducible: Always

Steps to Reproduce:
1. Create scrollbar with min=0, max=1, thumb=1
2. Created scrollbar is disabled.

Created scrollbar should have two positions.
Thumb should have half size of the whole scrollbar.
Comment 1 Lars Vogel CLA 2019-11-14 03:47:48 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.