It seems that if the bottom of a modal window is below the bottom of the browser window then it doesn't respond properly to mouse clicks anymore. Just setting the height to something like 2000 is enough to reproduce the behavior. Now when pushing the close button the window doesn't close, just scrolls into view. The same thing happens to the editor window of the grid.