Community
Participate
Working Groups
This is a copy of Bug 159898. In form-based editors (like Mylar task editor or PDE plugin.xml editor), the horizontal scrollbar behaves strangely. Clicking on the scoll pane, the content is scrolled horizontally by the same amount as when clicking on the arrow symbols. Expected behaviour is to scroll for a bigger amount (page size). Vertical scrollbar behaves normally.
Any chance to look at this? Minor but annoying...
I've not done too much investigating, but I believe the source may be down to org.eclipse.ui.internal.forms.widgets.FormUtil: public static void updatePageIncrement(ScrolledComposite scomp) { ScrollBar vbar = scomp.getVerticalBar(); if (vbar != null) { Rectangle clientArea = scomp.getClientArea(); int increment = clientArea.height - 5; vbar.setPageIncrement(increment); } } Only the vbar page increment is net, not the hbar. Unclear why this doesn't happen for non-form based widgets, too. Call stack: org.eclipse.ui.forms.widgets.initializeScrollBars(); org.eclipse.ui.forms.widgets.ScrolledForm.(init); org.eclipse.ui.forms.widgets.FormToolkit.createScrolledForm(); org.eclipse.ui.forms.editor.FormPage.createPartControl();
Any chance fixing this? Seems quite simple?
It does appear to be simple but we are getting too late in the Eclipse 3.3 cycle to be able to fix this.
Any chance looking into this for 3.4?
Low hanging fruit for Adam (must keep exercising those Eclipse muscles :-).
Created attachment 79142 [details] patch Your instinct was correct Andreas. The fix was exactly where you thought. Thanks for the investigation. :P
My first time digging into Eclipse code- great experience actually finding something ;)
Fixed in HEAD. The patch is good, thanks Andreas and Adam.
*** Bug 205102 has been marked as a duplicate of this bug. ***