fixes menu drawing issue when maximized