Fixed windows resizing with no titlebars

This commit is contained in:
pelya
2017-03-23 23:12:47 +02:00
committed by Sergii Pylypenko
parent 678b7f122a
commit 03868523af

View File

@@ -2242,6 +2242,10 @@ void NWidgetLeaf::SetupSmallestSize(Window *w, bool init_array)
size = extra;
fill = extra;
resize = extra;
if (this->type == WWT_CAPTION) {
fill.width = 1;
resize.width = 1;
}
} else switch (this->type) {
case WWT_EMPTY: {
static const Dimension extra = {0, 0};