Sets layout of surface inside parent to compensate differences between viewport and preview sizes and draw polygon correctly