In showAll to position controls in the corners you need to know the ratio of the device screen. You then multiply that by the width or height, to work out the position.