mirror of https://github.com/OpenTTD/OpenTTD
(svn r18333) -Fix (r18127): Station view window did not resize properly when toggling between ratings and acceptance view.
parent
736e0c18cc
commit
c0dfaec34d
|
@ -1110,7 +1110,7 @@ struct StationViewWindow : public Window {
|
||||||
nwi->SetDataTip(STR_STATION_VIEW_RATINGS_BUTTON, STR_STATION_VIEW_RATINGS_TOOLTIP); // Switch to ratings view.
|
nwi->SetDataTip(STR_STATION_VIEW_RATINGS_BUTTON, STR_STATION_VIEW_RATINGS_TOOLTIP); // Switch to ratings view.
|
||||||
height_change = ALH_ACCEPTS - ALH_RATING;
|
height_change = ALH_ACCEPTS - ALH_RATING;
|
||||||
}
|
}
|
||||||
this->ReInit(0, height_change);
|
this->ReInit(0, height_change * FONT_HEIGHT_NORMAL);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue