(svn r18331) -Fix [FS#3334]: news items would with some chat 'bars' not be displayed fully. Fix by erikjanp.

This commit is contained in:
rubidium
2009-11-29 00:41:08 +00:00
parent b00a5f1069
commit 5d38d06313
3 changed files with 19 additions and 2 deletions

View File

@@ -287,7 +287,7 @@ struct NewsWindow : Window {
NewsWindow(const WindowDesc *desc, NewsItem *ni) : Window(), ni(ni)
{
NewsWindow::duration = 555;
const Window *w = FindWindowById(WC_SEND_NETWORK_MSG, 0);
const Window *w = FindWindowByClass(WC_SEND_NETWORK_MSG);
this->chat_height = (w != NULL) ? w->height : 0;
this->status_height = FindWindowById(WC_STATUS_BAR, 0)->height;