When updating textarea layout settings, remember scrollbar status.

This commit is contained in:
Michael Drake 2013-02-09 18:21:10 +00:00
parent 1be54d7b10
commit 32e9602126
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}