public DialogFrameworkOptions.Builder fitViewport(boolean fitViewport) {
            options.setFitViewport(fitViewport);
            return this;
        }
Dialog size might exceed viewport if content is bigger than viewport in terms of height.
fitViewport option automatically adjusts height to fit dialog within the viewport.
@param fitViewport
@return
primefaces/src/main/java/org/primefaces/model/DialogFrameworkOptions.java