[dialog] Dialog height > viewport height => position at bottom of dialog

[dialog] Dialog height > viewport height => position at bottom of dialog

Hi,

I have a dialog set as position:'top'
It works great except if the dialog's height is greater than the viewport's height.
In that case, I cannot see the top of the dialog and the bottom of the dialog is at the bottom of the viewport (most of the times, note that sometimes by luck it is correctly positionned).
Thus I have to scroll up to view the top of the dialog each time.

The expected behaviour would be to see the top of the dialog on the top of the screen of course.

Can anyone help with this ?
Thank you
(I'm using latest jQuery UI and latest Firefox and Chrome)