angular-ui/bootstrap — pull request #1344 by dmitry-dedukhin (2013-12-04 07:46:33+00:00)
Title: fix(datepicker): Prevent from extending beyond the right screen edge

When input Datepicker is attached to is close to the right screen edge Datepicker's container may extend beyond the right screen edge leading to appearing of horisontal scrolling.

PS: I'm not sure that calling updatePosition at each digest cycle is a good idea but I do not know any other way to achive the same.