#11746 issue fix problem - Popover overflows if it is close to the right...

... end of the window.