Skip to content

Screen relative position/size broken #43

@GoogleCodeExporter

Description

@GoogleCodeExporter
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 artur.bi...@gmail.com on 25 Mar 2013 at 7:24

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions