The problem is in situation when modalPanel resized on some action and new size is bigger then a part of screen.
For example if we rerender a table and its size grows, then modalPanel resize its height, but doesnt change start position(x,y). So some part of the panel is off screen.