mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r15088) -Fix [FS#2536]: Resize company list in town authority window if required.
This commit is contained in:
parent
4f4408f37e
commit
1ee0c4caf4
|
@ -210,6 +210,14 @@ public:
|
||||||
y += 10;
|
y += 10;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (y > this->widget[TWA_RATING_INFO].bottom) {
|
||||||
|
/* If the company list is too big to fit, mark ourself dirty and draw again. */
|
||||||
|
ResizeWindowForWidget(this, TWA_RATING_INFO, 0, y - this->widget[TWA_RATING_INFO].bottom);
|
||||||
|
this->SetDirty();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
y = this->widget[TWA_COMMAND_LIST].top + 1;
|
y = this->widget[TWA_COMMAND_LIST].top + 1;
|
||||||
int pos = this->vscroll.pos;
|
int pos = this->vscroll.pos;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue