Adapted the coding style of ResizableFrame.