IDEA-155043 Can't grab inactive scroll bar on OS X

This commit is contained in:
Sergey Malenkov
2016-04-22 12:42:35 +03:00
parent e28f24d96b
commit b4445f42af
@@ -801,8 +801,10 @@ public class ButtonlessScrollBarUI extends BasicScrollBarUI {
Graphics2D g2d = (Graphics2D)g;
if (Registry.is("mac.scroll.new.ui")) {
float value = (float)(1 - myMacScrollbarFadeLevel);
RegionPainter<Float> painter = isDark() ? JBScrollPane.MAC_THUMB_DARK_PAINTER : JBScrollPane.MAC_THUMB_PAINTER;
painter.paint(g2d, thumbBounds.x - 2, thumbBounds.y - 2, thumbBounds.width + 4, thumbBounds.height + 4, value);
if (!myMacScrollbarHidden || alwaysPaintThumb()) {
RegionPainter<Float> painter = isDark() ? JBScrollPane.MAC_THUMB_DARK_PAINTER : JBScrollPane.MAC_THUMB_PAINTER;
painter.paint(g2d, thumbBounds.x - 2, thumbBounds.y - 2, thumbBounds.width + 4, thumbBounds.height + 4, value);
}
return;
}
RenderingHints oldHints = g2d.getRenderingHints();