fix maximized state path display

Closes #1580 Maximize button only displays partially when using SaveWindowPosition

thx @grokys for investigating