Ui dialog position problem

Ui dialog position problem

i have an problem with positioning of jquery dialog. i used collision:"flip flip" but verticle flipping is not working. i.e. when i open my dialog at bottom of screen and screen has verticle scrollbar then my dialog doesnot flip in verticale direction