Fix console not being properly resized after window size changed (#6020)
authorZeno- <kde.psych@gmail.com>
Tue, 20 Jun 2017 10:36:58 +0000 (20:36 +1000)
committerLoïc Blot <nerzhul@users.noreply.github.com>
Tue, 20 Jun 2017 10:36:58 +0000 (12:36 +0200)
src/guiChatConsole.cpp

index f8c3ed4c111ec2fdf33555fcd262d993889720eb..ecd280f5e406bb7deda765f26da161b963605bee 100644 (file)
@@ -213,6 +213,7 @@ void GUIChatConsole::reformatConsole()
        s32 rows = m_desired_height / m_fontsize.Y - 1; // make room for the input prompt
        if (cols <= 0 || rows <= 0)
                cols = rows = 0;
+       recalculateConsolePosition();
        m_chat_backend->reformat(cols, rows);
 }