(widget_set_size): send MSG_DRAW after MSG_RESIZE.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2016-06-18 21:05:18 +03:00
parent 240350db95
commit 91c72122a8

View File

@ -281,6 +281,8 @@ widget_set_size (Widget * widget, int y, int x, int lines, int cols)
widget->cols = cols;
widget->lines = lines;
send_message (widget, NULL, MSG_RESIZE, 0, NULL);
if (widget->owner != NULL && widget_get_state (WIDGET (widget->owner), WST_ACTIVE))
send_message (widget, NULL, MSG_DRAW, 0, NULL);
}
/* --------------------------------------------------------------------------------------------- */