Fixed window jump when window is close to status bar