summaryrefslogtreecommitdiff
path: root/src/gui/ministatus.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/ministatus.cpp')
-rw-r--r--src/gui/ministatus.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/ministatus.cpp b/src/gui/ministatus.cpp
index 59dca0e1..6884f4d6 100644
--- a/src/gui/ministatus.cpp
+++ b/src/gui/ministatus.cpp
@@ -73,8 +73,9 @@ MiniStatusWindow::MiniStatusWindow():
add(mMpLabel);
add(mXpLabel);
- setDefaultSize(0, 0, mXpBar->getX() + mXpBar->getWidth(),
+ setContentSize(mXpBar->getX() + mXpBar->getWidth(),
mXpBar->getY() + mXpBar->getHeight());
+ setDefaultSize(0, 0, getWidth(), getHeight());
loadWindowState();
}