Fix station tile tooltip width

This commit is contained in:
dP
2025-11-22 21:56:29 +05:00
parent a25d0cb177
commit 418faa5312

View File

@@ -123,7 +123,7 @@ struct LandTooltipsWindow : public Window
ge.GetData().cargo.TotalCount(),
ToPercent8(ge.rating)
);
size.width = std::max(GetStringBoundingBox(CM_STR_LAND_TOOLTIPS_STATION_CARGO).width + icons_width, size.width);
size.width = std::max(GetStringBoundingBox(str).width + icons_width, size.width);
}
}
break;