Calendar Pop-Up Not Fitting on Screen

When the calendar object is displayed near a corner/end of the screen, when the pop-up appears it does not fit on the screen. A user has to scroll to see the calendar pop-up. Is there anything to be done about this?


There is an opportunity to define the calendar position:


So, you can define the position taking into consideration the necessary horisontal and (or) vertical offset.

I am getting an error when trying to use this function: is null or not an object

Please, provide the sample to re-create the problem