summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZeno- <kde.psych@gmail.com>2017-06-20 20:36:58 +1000
committerSmallJoker <mk939@ymail.com>2018-06-03 17:31:59 +0200
commitcfa62166944f6d414d1c09756fef226dabcc5056 (patch)
treeab9e6f65516e1c90c6b561892fb633d834d64bb3
parent322e5aaf9285e9686101393967f1a3c1e7db986c (diff)
downloadminetest-cfa62166944f6d414d1c09756fef226dabcc5056.tar.gz
minetest-cfa62166944f6d414d1c09756fef226dabcc5056.tar.bz2
minetest-cfa62166944f6d414d1c09756fef226dabcc5056.zip
Fix console not being properly resized after window size changed (#6020)
-rw-r--r--src/guiChatConsole.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/guiChatConsole.cpp b/src/guiChatConsole.cpp
index 5bb80bbbe..91ed91301 100644
--- a/src/guiChatConsole.cpp
+++ b/src/guiChatConsole.cpp
@@ -231,6 +231,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);
}