I am having a "small" issue with the angularjs ui datepicker. I need to indicate somehow, if an input with a datepicker attach, should show the popup from the bottom-left corner of the input (as default)

or if I want it from the bottom-right corner of the input instead. This is because in a page that I am creating, my input is really close to the right side of the page, and when I attach the datepicker, this happens (the datepicker is cutted and now a horizontal scroll appears):

but the thing is that I need the datepicker in both positions (according to the case related in the images).
Someone know how can this be fixed? I have tried changing the left attribute that is inline in the datepicker popup template, but it is always a fixed value and I believed that is not the real option.
Thanks
leftproperty at an absolute 800px then you are going to lose the rightmost 100px. It is generally a bad idea to have fixed layouts in CSS (what if the user re-sizes the browser, changes screen restitution, uses a mobile device with a smaller screen, etc?). This looks to me like a CSS problem and not and Angular problem.