pTop += 0;
break;
case 'bottom':
- // Opera check fixes #3564, can go away with jQuery 1.3
- pTop += ($.browser.opera ? window.innerHeight : wnd.height()) - this.uiDialog.outerHeight();
+ pTop += wnd.height() - this.uiDialog.outerHeight();
break;
default:
case 'middle':
- // Opera check fixes #3564, can go away with jQuery 1.3
- pTop += (($.browser.opera ? window.innerHeight : wnd.height()) - this.uiDialog.outerHeight()) / 2;
+ pTop += (wnd.height() - this.uiDialog.outerHeight()) / 2;
}
}
} else {
return scrollHeight + 'px';
}
- // handle Opera
- } else if ($.browser.opera) {
- return Math.max(
- window.innerHeight,
- $(document).height()
- ) + 'px';
// handle "good" browsers
} else {
return $(document).height() + 'px';
} else {
return scrollWidth + 'px';
}
- // handle Opera
- } else if ($.browser.opera) {
- return Math.max(
- window.innerWidth,
- $(document).width()
- ) + 'px';
// handle "good" browsers
} else {
return $(document).width() + 'px';