Codechange: Prefer suggested widget padding.

This commit is contained in:
Peter Nelson
2021-05-03 16:56:02 +01:00
committed by PeterN
parent 0108e9f387
commit b6ed595176
18 changed files with 38 additions and 36 deletions

View File

@@ -662,7 +662,7 @@ struct GenerateLandscapeWindow : public Window {
}
}
size->width += padding.width;
size->height = std::max(size->height, (uint)(FONT_HEIGHT_NORMAL + WD_DROPDOWNTEXT_TOP + WD_DROPDOWNTEXT_BOTTOM));
size->height = std::max(size->height, (uint)(FONT_HEIGHT_NORMAL + padding.height));
}
void OnClick(Point pt, int widget, int click_count) override