Max size of window was set according to field size and to be less than maximum desktop size.
Annoying gap at right and at bottom borders fixed