Call setRect on layout object