Added setFrameSize