|
|
@ -102,7 +102,7 @@ public:
|
|
|
|
|
|
|
|
|
|
|
|
if (!this->cargo_acceptance.empty()) {
|
|
|
|
if (!this->cargo_acceptance.empty()) {
|
|
|
|
uint width = GetStringBoundingBox(this->cargo_acceptance).width + WidgetDimensions::scaled.frametext.Horizontal();
|
|
|
|
uint width = GetStringBoundingBox(this->cargo_acceptance).width + WidgetDimensions::scaled.frametext.Horizontal();
|
|
|
|
size->width = std::max(size->width, std::min(300u, width));
|
|
|
|
size->width = std::max(size->width, std::min(static_cast<uint>(ScaleGUITrad(300)), width));
|
|
|
|
SetDParamStr(0, cargo_acceptance);
|
|
|
|
SetDParamStr(0, cargo_acceptance);
|
|
|
|
size->height += GetStringHeight(STR_JUST_RAW_STRING, size->width - WidgetDimensions::scaled.frametext.Horizontal());
|
|
|
|
size->height += GetStringHeight(STR_JUST_RAW_STRING, size->width - WidgetDimensions::scaled.frametext.Horizontal());
|
|
|
|
}
|
|
|
|
}
|
|
|
|