summaryrefslogtreecommitdiff
blob: ee556ccb56a944df59669afc533c63c776cb1c78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--- src/qt_qt_wrapper.cpp.orig	2004-07-30 20:02:08.000000000 +0300
+++ src/qt_qt_wrapper.cpp	2004-09-03 07:49:57.210098392 +0300
@@ -860,6 +860,16 @@
 {
 	if (!gtkQtEnable)
 		return;
+
+	if (orientation == GTK_ORIENTATION_HORIZONTAL)
+	{
+		y--;
+	}
+	else
+	{
+		x--;
+	}
+
 	
 	if(CachedImage* it = cacheFind(CachedImage::ScrollBarSlider, state, w, h))
 	{
@@ -885,9 +895,9 @@
 	delta += offset;
 
 	if (orientation) {
-		sbar.resize(w, h + delta + 1);
+		sbar.resize(w, h + delta);
 	} else {
-		sbar.resize(w + delta + 1, h);
+		sbar.resize(w + delta, h);
 	}
 
 	sbar.setMinValue(0);