Fix position of scrolly bio, increase user profile window size

This commit is contained in:
Simon Robertshaw 2013-05-04 15:18:37 +01:00
parent 99c560bfd3
commit b0f14e0c54

View File

@ -12,7 +12,7 @@
#include "client/requestbroker/RequestListener.h"
ProfileActivity::ProfileActivity(std::string username) :
WindowActivity(ui::Point(-1, -1), ui::Point(236, 200)),
WindowActivity(ui::Point(-1, -1), ui::Point(236, 300)),
loading(false),
saving(false)
{
@ -151,7 +151,7 @@ void ProfileActivity::setUserInfo(UserInfo newInfo)
currentY += 10+bio->Size.Y;
if(currentY > Size.Y - 20)
{
ui::ScrollPanel * scrollPanel = new ui::ScrollPanel(bio->Position, ui::Point(Size.X, Size.Y-30-bio->Position.Y));
ui::ScrollPanel * scrollPanel = new ui::ScrollPanel(ui::Point(1, bio->Position.Y), ui::Point(Size.X-2, Size.Y-30-bio->Position.Y));
AddComponent(scrollPanel);
bio->Position = ui::Point(4, 4);
scrollPanel->AddChild(bio);