Implement setSize and prevent resizing