Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-11-09 17:44:24 +0000
committerStijn Buys <ingar@osirion.org>2008-11-09 17:44:24 +0000
commit06212c7d8dc20b11f49d54e42f8299740f90a231 (patch)
treeaf179e6015cb86be61ee640154fde1d70967d919 /src/client/notifications.cc
parentf0ba130494173d01c6e800c95e19dc1826ddc68e (diff)
improved client notifications, minor bugfixes
Diffstat (limited to 'src/client/notifications.cc')
-rw-r--r--src/client/notifications.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/notifications.cc b/src/client/notifications.cc
index 256f110..25cbe0b 100644
--- a/src/client/notifications.cc
+++ b/src/client/notifications.cc
@@ -6,6 +6,7 @@
#include "client/notifications.h"
#include "core/application.h"
+#include "ui/ui.h"
namespace client
{
@@ -20,6 +21,7 @@ Notifications::Notifications(ui::Widget *parent) : ui::Widget(parent)
notify_scrollpane = new ui::ScrollPane(this, notify_log);
notify_scrollpane->set_border(false);
+ notify_scrollpane->set_alignment(ui::AlignTop);
}
Notifications::~Notifications()
@@ -54,13 +56,14 @@ void Notifications::draw()
t = notify_timestamp.begin();
}
- const float margin = 8.0f;
+ const float margin = ui::UI::elementmargin;
math::Vector2f s(size());
s.x -= margin*2;
s.y -= margin*2;
notify_scrollpane->set_location(margin, margin);
notify_scrollpane->set_size(s.x, s.y );
+
}