| Summary: | [MPC] wizard list view has tiny scroll amount | ||
|---|---|---|---|
| Product: | [Technology] MPC | Reporter: | Michael Keppler <michael.keppler> |
| Component: | wizard | Assignee: | 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: | |||
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! Moving open issues to 1.5.1 |
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)); } }