Scrollbar and close button on window

Hello All,

I have a simple modal window and it is closable. When I reduce the size of the browser, the window provides me with a scrollbar, both vertical and horizontal. However, the vertical scrollbar is partially overlapping the default close button of the window. Can anybody suggest any solution to this? Thank you