OZP-16: center bootstrap modal window, and fix updateWindowSize method