resize takes menu bar into account