Fitting to the window properly