Quote:
|
Originally Posted by Anakreon
The parent window would be groupmembers, and the window within that i'm trying to distribute values throughout is the same width as the group window... so that doesn't really make too awful much sense. Plus the diagonal thing is just wacky.
|
The diagonal makes sense. All distribute does is tell UIBuilder to make the space between the selected objects the same, but to retain the left and right/top and bottom points as closely as possible (you'll lose a couple pixels if the total space to be distributed isn't divisible by the number of elements.)
So, say I have 5 elements A-E each 10x10. A is at 0,0 E is at 100,100. I tell UIBuilder to space them evenly horizontally, and it does. I now have 5 elements with exactly 10 pixels between them horizontally.
Next I tell UIBuilder to distribute them vertically. Again it equalizes the space between each element. So I now have 5 elements with 10 pixels between them vertically as well as horizontally.
Since UIBuilder is keeping the top/left and bottom/right points the same, that spacing ends up forcing the items into a diagonal slope. Usually you'll only want to distribute elements along one axis, along the other you'll want to use align-to-top/bottom/right/left/center. (Unless, I suppose, you're trying to make a grid, in which case I could see using distribute to get the top row and the left row spaced right, then use align-to-left/top to get the other rows to fall into place.)