Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/container.cc')
-rw-r--r--src/ui/container.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/container.cc b/src/ui/container.cc
index d544244..5a12e8e 100644
--- a/src/ui/container.cc
+++ b/src/ui/container.cc
@@ -30,12 +30,12 @@ Container::~Container()
void Container::resize()
{
float w = container_childsize.width() * 1.5f;
- float h = children().size() * container_childsize.height() + (children().size()+1) * container_margin;
+ float h = children().size() * (container_childsize.height() + margin()) + container_childsize.height();
set_size(w, h);
const float x = container_childsize.width() * 0.25f;
- float y = container_margin;
+ float y = container_childsize.height() * 0.5f;
// reposition all children within the container
for (Children::iterator it = children().begin(); it != children().end(); it++) {