This seems to work (to make button 1 appear to be 100 pixels from the top and left, and to appear to be 200 wide and 150 tall): on fixit put random(10)/10 + 1 into it set the scalefactor of this stack to it set the rect of btn 1 to 100/it,100/it,100/it+100/it,100/it+50/it end fixit