From 32e9602126837981751c0f781592ca3f5fc1f56c Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 9 Feb 2013 18:21:10 +0000 Subject: When updating textarea layout settings, remember scrollbar status. --- desktop/textarea.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'desktop') 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); } -- cgit v1.2.3