1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-10-31 15:35:03 -04:00

Fix textbox not scrolling to to bottom on resize

Set buf->scrollbar_down conditionally when vertically resizing text window
If resize to enlarge appears to go to last line, set buf->scrollbar_down to be sure.

Fixes #1151
Closes #1171
This commit is contained in:
RichardHitt 2014-10-08 16:42:41 -07:00 committed by TingPing
parent abaed2bda4
commit 6653582f0a

View File

@ -484,7 +484,10 @@ gtk_xtext_adjustment_set (xtext_buffer *buf, int fire_signal)
adj->page_increment = adj->page_size; adj->page_increment = adj->page_size;
if (adj->value > adj->upper - adj->page_size) if (adj->value > adj->upper - adj->page_size)
{
buf->scrollbar_down = TRUE;
adj->value = adj->upper - adj->page_size; adj->value = adj->upper - adj->page_size;
}
if (adj->value < 0) if (adj->value < 0)
adj->value = 0; adj->value = 0;