Skip to content

Commit f580cff

Browse files
committed
Fixes White scroll visual bug
1 parent ad6db00 commit f580cff

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/com/reveal/codetimemachine/CommitsTimelineZoomable.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,11 @@ public CommitsTimelineZoomable(ArrayList<CommitWrapper> commitList, TTMSingleFil
3434

3535
private void setupScrollBarProperties()
3636
{
37-
setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);
37+
setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
3838
getHorizontalScrollBar().setPreferredSize(new Dimension(0, 8));
39+
getHorizontalScrollBar().setBackground(Color.BLACK); //default WHITE
3940
getHorizontalScrollBar().setForeground(Color.BLACK); //default WHITE
40-
//getHorizontalScrollBar().setOpaque(true);
41+
getHorizontalScrollBar().setOpaque(true);
4142

4243
setVerticalScrollBarPolicy(VERTICAL_SCROLLBAR_NEVER);
4344
}

0 commit comments

Comments
 (0)