VDI-1212: Minimizing and maximizing do resize

In order to detect dimensions to width and height after this events