From 17b07a6242859c9f5809ce8eb6a8d4eb935a0212 Mon Sep 17 00:00:00 2001 From: Yana Stamcheva Date: Fri, 12 May 2006 15:20:10 +0000 Subject: [PATCH] horizontal scrollbar bug fixed in painting. --- .../impl/gui/lookandfeel/SIPCommScrollBarUI.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/net/java/sip/communicator/impl/gui/lookandfeel/SIPCommScrollBarUI.java b/src/net/java/sip/communicator/impl/gui/lookandfeel/SIPCommScrollBarUI.java index 379272fdc..065455bf2 100644 --- a/src/net/java/sip/communicator/impl/gui/lookandfeel/SIPCommScrollBarUI.java +++ b/src/net/java/sip/communicator/impl/gui/lookandfeel/SIPCommScrollBarUI.java @@ -181,13 +181,14 @@ protected void paintThumb(Graphics g, JComponent c, Rectangle thumbBounds) imgHeight); g.drawImage(leftImage, 0, 0, - indentWidth, thumbBounds.height, null); + indentWidth, thumbBounds.height-2, null); - g.drawImage(middleImage, thumbBounds.x+indentWidth, thumbBounds.y, - thumbBounds.width-2*indentWidth, thumbBounds.height , null); + g.drawImage(middleImage, indentWidth, thumbBounds.y, + thumbBounds.width-indentWidth, + thumbBounds.height-2 , null); g.drawImage(rightImage, thumbBounds.width-indentWidth, thumbBounds.y, - indentWidth, thumbBounds.height, null); + indentWidth, thumbBounds.height-2, null); g.drawImage(horizontalThumbHandle, thumbBounds.width/2-horizontalThumbHandle.getWidth()/2,