1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-12 09:09:09 +00:00

(svn r20997) -Fix: Size of sort buttons for order and vehicle list gui could be too small

This commit is contained in:
planetmaker
2010-10-19 21:48:20 +00:00
parent 9373ee71d9
commit c2a7b82a9f
6 changed files with 20 additions and 4 deletions

View File

@@ -169,7 +169,7 @@ public:
switch (widget) {
case BBSW_DROPDOWN_ORDER: {
Dimension d = GetStringBoundingBox(this->GetWidget<NWidgetCore>(widget)->widget_data);
d.width += padding.width + WD_SORTBUTTON_ARROW_WIDTH * 2; // Doubled since the word is centered, also looks nice.
d.width += padding.width + WD_SORTBUTTON_ARROW_WIDTH * 2; // Doubled since the string is centred and it also looks better.
d.height += padding.height;
*size = maxdim(*size, d);
break;