JAL-2778: Overview panel redraws slowly when overlapping the alignment panel
|Participant||Role||Time Spent||Comments||Latest Comment|
|Author||1h 12m||8||All calling code already checks this. Happy to add it in ...|
|Reviewer - Complete||42m||11||setWidth, setHeight now also update widthRatio and height...|
(Originally reported by Geoff Barton)
The overview panel allows the viewport position to be adjusted by dragging a red box representing the viewport's location. When dragging the box, the speed at which it is redrawn depends on whether the overview panel is overlapping the alignment panel (and possibly others - I'm still investigating the exact behaviour).
If the overview does not overlap any other panels, the repaint is fast when dragging the box, regardless of the size of the overview panel. If the overview overlaps the alignment, the repaint becomes quite slow.
It appears that repaints of the overlapped panels are directly triggering the paintComponent method in the overview. The resulting build-up of repaint calls seems to be causing the observed slowdown.
Branches in review
Issues Raised From Comments