
However when I try to put a button next to it, things get a bit wonky:

The text from the second button next to it is put in an unexpected place. I worked out the math with the specific coordinates and that is exactly where the text is supposed to be according to the code/math.
API:
http://pastebin.com/KgBJMtBg
Code used to run it:
http://pastebin.com/w0bxsynv
If someone could please take the time to read my code and try to figure out what is wrong, that would be great.
Help is appreciated!
Thanks!











