summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-02-09 18:21:10 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2013-02-09 18:21:10 +0000
commit32e9602126837981751c0f781592ca3f5fc1f56c (patch)
tree50ccbf7284898b0b5d25bb0fde43ae0370f63ee8 /desktop
parent1be54d7b104f4a91cc12113343f16c7d73f3665a (diff)
downloadnetsurf-32e9602126837981751c0f781592ca3f5fc1f56c.tar.gz
netsurf-32e9602126837981751c0f781592ca3f5fc1f56c.tar.bz2
When updating textarea layout settings, remember scrollbar status.
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);
}