Set frame to fit components to window when resize