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

Bug 352273

Summary: [MPC] wizard list view has tiny scroll amount
Product: [Technology] MPC Reporter: Michael Keppler <michael.keppler>
Component: wizardAssignee: Project Inbox <mpc.wizard-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3    
Version: unspecified   
Target Milestone: 1.5.1   
Hardware: PC   
OS: Linux   
Whiteboard:

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