summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
Diffstat (limited to 'desktop')
-rw-r--r--desktop/textarea.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop/textarea.c b/desktop/textarea.c
index acfe6276c..4ab62cbba 100644
--- a/desktop/textarea.c
+++ b/desktop/textarea.c
@@ -2230,8 +2230,8 @@ void textarea_set_layout(struct textarea *ta, int width, int height,
ta->vis_width = width;
ta->vis_height = height;
ta->pad_top = top;
- ta->pad_right = right;
- ta->pad_bottom = bottom;
+ ta->pad_right = right + ((ta->bar_y == NULL) ? 0 : SCROLLBAR_WIDTH);
+ ta->pad_bottom = bottom + ((ta->bar_x == NULL) ? 0 : SCROLLBAR_WIDTH);
ta->pad_left = left;
textarea_reflow(ta, 0);
}