summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorFreeyorp <Freeyorp101@NOSPAM@hotmail.com>2009-05-14 00:38:08 +1200
committerJared Adams <jaxad0127@gmail.com>2009-05-13 07:30:28 -0600
commit639260f2e7cccee8092c6ba51db8f1a6e7152fa4 (patch)
tree1c3bd7157cdd2790b28f73eb6966cf4314753001 /src/gui/widgets
parentf19d3f4db065472141b9c6bdf63726138006cb14 (diff)
downloadmana-client-639260f2e7cccee8092c6ba51db8f1a6e7152fa4.tar.gz
mana-client-639260f2e7cccee8092c6ba51db8f1a6e7152fa4.tar.bz2
mana-client-639260f2e7cccee8092c6ba51db8f1a6e7152fa4.tar.xz
mana-client-639260f2e7cccee8092c6ba51db8f1a6e7152fa4.zip
Modify PartyWindow sizing again
Rather than expanding PartyWindow again, call mLabel->adjustSize(); and let players resize the window if they need to. Also shrink the minimum size of the PartyWindow.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/avatar.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/widgets/avatar.cpp b/src/gui/widgets/avatar.cpp
index b120c51f..0bbdc468 100644
--- a/src/gui/widgets/avatar.cpp
+++ b/src/gui/widgets/avatar.cpp
@@ -42,7 +42,7 @@ Avatar::Avatar():
mMaxHp(0)
{
setOpaque(false);
- setSize(200, 12);
+ setSize(250, 12);
if (avatarCount == 0)
{
@@ -58,7 +58,7 @@ Avatar::Avatar():
mStatus->setSize(12, 12);
add(mStatus, 1, 0);
mLabel = new Label;
- mLabel->setSize(174, 12);
+ mLabel->adjustSize();
add(mLabel, 16, 0);
}
@@ -108,4 +108,5 @@ void Avatar::updateAvatarLabel()
ss << " (" << mHp << "/" << mMaxHp << ")";
mLabel->setCaption(ss.str());
+ mLabel->adjustSize();
}