Fix problem where widget could jump around vertically when switching tabs