aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--gtk/ScintillaGTK.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx
index 1e67e44be..349a98292 100644
--- a/gtk/ScintillaGTK.cxx
+++ b/gtk/ScintillaGTK.cxx
@@ -1097,7 +1097,7 @@ void ScintillaGTK::Resize(int width, int height) {
alloc.width = Platform::Maximum(1, width - scrollBarWidth) + 1;
alloc.height = horizontalScrollBarHeight;
} else {
- alloc.y = height;
+ alloc.y = -scrollBarHeight;
alloc.width = 0;
alloc.height = 0;
}
@@ -1109,7 +1109,7 @@ void ScintillaGTK::Resize(int width, int height) {
alloc.width = scrollBarWidth;
alloc.height = Platform::Maximum(1, height - scrollBarHeight) + 1;
} else {
- alloc.x = width;
+ alloc.x = -scrollBarWidth;
alloc.width = 0;
alloc.height = 0;
}