(svn r20997) -Fix: Size of sort buttons for order and vehicle list gui could be too small
This commit is contained in:
@@ -379,7 +379,7 @@ public:
|
||||
switch (widget) {
|
||||
case SLW_SORTBY: {
|
||||
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;
|
||||
|
Reference in New Issue
Block a user