diff options
Diffstat (limited to 'src/gui/widgets/avatar.cpp')
-rw-r--r-- | src/gui/widgets/avatar.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/gui/widgets/avatar.cpp b/src/gui/widgets/avatar.cpp index 0bbdc468..16c77233 100644 --- a/src/gui/widgets/avatar.cpp +++ b/src/gui/widgets/avatar.cpp @@ -42,7 +42,6 @@ Avatar::Avatar(): mMaxHp(0) { setOpaque(false); - setSize(250, 12); if (avatarCount == 0) { @@ -54,12 +53,17 @@ Avatar::Avatar(): avatarStatusOffline->incRef(); avatarStatusOnline->incRef(); - mStatus = new Icon(avatarStatusOffline); - mStatus->setSize(12, 12); - add(mStatus, 1, 0); mLabel = new Label; mLabel->adjustSize(); + + mStatus = new Icon(avatarStatusOffline); + mStatus->setSize(12, 12); + + add(mStatus, 1, (mLabel->getHeight() - 12) / 2); add(mLabel, 16, 0); + + setSize(250, mLabel->getHeight()); + } Avatar::~Avatar() |