primeui-all.js
function(pos) {
                                var l = pos.left < 0 ? 0 : pos.left,
                                t = pos.top < 0 ? 0 : pos.top;

                                $(this).css({
                                    left: l,
                                    top: t
                                });
                            }
function(pos) {
                                var l = pos.left < 0 ? 0 : pos.left,
                                t = pos.top < 0 ? 0 : pos.top;

                                $(this).css({
                                    left: l,
                                    top: t
                                });
                            }
function ( pos ) { var l = pos . left < 0 ? 0 : pos . left , t = pos . top < 0 ? 0 : pos . top ; $ ( this ) . css ( { left : l , top : t } ) ; }
make sure dialog stays in viewport
make sure dialog stays in viewport