Fix styling to autofit window