Hello Thunkers !
After struggling a while with my new issue:
https://community.thunkable.com/t/trouble-to-align-components/1982363
I said to myself to keep it simple, and start with basics.
So, 1st of all, I eliminate layouts from equation (thinking that maybe issue is there when rendering on the screen). I tried to clone a lonely button horizontally and vertically.
First step, calculate the coordinates and dimensions. For that, I obviously need the screen’s width, and I made the calculations below to get a square and 2 similar margins (left/right) after I’ll have a 9 button’s row) - all as integers, to eliminate possible errors due to decimals.
Now, the cloning phase:
Everything seems to be working… except the fact that the result looks like:
As you can see, the left margin is not the same size as right margin… and there’s spaces between buttons I can’t explain.
I put some alert to double check the math:
And pressing, for example, the 5th horizontal button, will have the next result:
Correct, x coordinate is 9 + 4x38 = 161
So, the app tells me that Math has right, but the displaying result on device’s screen doesn’t care about it
Why then, left/right margins are not equal, why buttons have spaces between ? (the obvious answer is that displayed buttons are actually smaller than Thunkable knows and reports)
So, before going to work with more complex things like layout, I need to understand this basic thing and how can be solved.
If you wanna try by yourself, I’ll put here the link to test app:
https://x.thunkable.com/copy/e82792b87b47fd79d7828371ab862a71
Thank you for your time.








