You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 31, 2020. It is now read-only.
I wanted to change ChatBox at the top of the screen. Originally I had it like
pos = 10,10
size = 1000,400
The, I wanted to try relative sizes
pos = 0.01f, 0.01f
size = 0.98f, 400
It turns out that it doesn't work - I need to call validateLayout for it to
take effect. Ok, validateLayout - but surprise, y position percentage is
counted from the bottom, not from the top as all other coordinates. Ok, correct
it to
pos = 0.01f, 0.99f
size = 0.98f, 400
And again suprise - it is bottom side of the chatbox which is placed at 0.99f,
not top one.
Ok, correct it to
pos = 0.01f, 0.80f
size = 0.98f,0.19f
and now it is positioned correctly, but contents are destroyed...
Original issue reported on code.google.com by [email protected] on 25 Mar 2013 at 7:24
The text was updated successfully, but these errors were encountered:
This method of adding relative positioned elements never worked out correctly.
The best way of handling this is parent.getWidth()*0.9f,
parent.getWidth()*0.5f, etc.
Eventually I'll revisit this approach and see if I can get it working.
Original issue reported on code.google.com by
[email protected]
on 25 Mar 2013 at 7:24The text was updated successfully, but these errors were encountered: