Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 352273 - [MPC] wizard list view has tiny scroll amount
Summary: [MPC] wizard list view has tiny scroll amount
Status: NEW
Alias: None
Product: MPC
Classification: Technology
Component: wizard (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: 1.5.1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-16 12:00 EDT by Michael Keppler CLA
Modified: 2016-06-07 10:10 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Keppler CLA 2011-07-16 12:00:46 EDT
Using the scroll bar buttons of the vertical scroll bar in the MPC wizard scrolls only a very small amount of pixels per click. As the height of each item in the list is typically around 140 pixels (at least when debugging on my system), the scroll bar buttons need more scrolling per mouse click.

I'm not sure whether this is a good place to fix the issue, but I added the following to the end of MarketPlaceViewer>>doCreateViewer(). 100 pixels is a freely choosen number, it would also be possible to inspect the size of the child items in the scrolling composite instead.

		if (viewer.getControl() instanceof Composite) {
			Composite comp = (Composite) viewer.getControl();
			ScrollBar scrollbar = comp.getVerticalBar();
			if (scrollbar != null) {
				scrollbar.setIncrement(Math.max(scrollbar.getIncrement(), 100));
				scrollbar.setPageIncrement(Math.max(scrollbar.getPageIncrement(), 100));
			}
		}
Comment 1 Benjamin Muskalla CLA 2011-07-19 11:07:55 EDT
Yes, this makes sense.
Michael, could you attach a git patch with your changes so we have the original author of the patch tracked? Thanks!
Comment 2 Carsten Reckord CLA 2016-06-07 10:10:41 EDT
Moving open issues to 1.5.1