From 8196b03074184cd75e85263a07d9eca63f5c6721 Mon Sep 17 00:00:00 2001 From: terkhen Date: Fri, 11 Feb 2011 18:24:12 +0000 Subject: (svn r22059) -Fix (r21179): Make the send chat message window follow the position of the status bar. --- src/network/network_chat_gui.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/network') diff --git a/src/network/network_chat_gui.cpp b/src/network/network_chat_gui.cpp index 539a49270..e610f9cbf 100644 --- a/src/network/network_chat_gui.cpp +++ b/src/network/network_chat_gui.cpp @@ -303,6 +303,8 @@ struct NetworkChatWindow : public QueryStringBaseWindow { this->SetFocusedWidget(NWCW_TEXTBOX); InvalidateWindowData(WC_NEWS_WINDOW, 0, this->height); _chat_tab_completion_active = false; + + PositionNetworkChatWindow(this); } ~NetworkChatWindow() @@ -457,7 +459,7 @@ struct NetworkChatWindow : public QueryStringBaseWindow { virtual Point OnInitialPosition(const WindowDesc *desc, int16 sm_width, int16 sm_height, int window_number) { - Point pt = { (_screen.width - max(sm_width, desc->default_width)) / 2, _screen.height - sm_height - FindWindowById(WC_STATUS_BAR, 0)->height }; + Point pt = { 0, _screen.height - sm_height - FindWindowById(WC_STATUS_BAR, 0)->height }; return pt; } -- cgit v1.2.3-70-g09d2