[WIP] fix not working ShowMinButton/ShowMaxRestoreButton properties

- store min/max button visibility and use it on resize mode change

Closes #1362