| 175 | } |
| 176 | |
| 177 | void OnResize() override |
| 178 | { |
| 179 | if (this->viewport != nullptr) { |
| 180 | NWidgetViewport *nvp = this->GetWidget<NWidgetViewport>(WID_W_VIEWPORT); |
| 181 | nvp->UpdateViewportCoordinates(this); |
| 182 | this->wp->UpdateVirtCoord(); |
| 183 | |
| 184 | ScrollWindowToTile(this->GetCenterTile(), this, true); // Re-center viewport. |
| 185 | } |
| 186 | } |
| 187 | |
| 188 | void OnQueryTextFinished(std::optional<std::string> str) override |
| 189 | { |
nothing calls this directly
no test coverage detected