Changeset 1183

Show
Ignore:
Timestamp:
12/19/08 12:23:57 (15 months ago)
Author:
scott.gonzalez
Message:

Dialog: Fixed #3564: Proper positioning in Opera.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ui/ui.dialog.js

    r1177 r1183  
    351351                                        break; 
    352352                                case 'bottom': 
    353                                         pTop += wnd.height() - this.uiDialog.height(); 
     353                                        // Opera check fixes #3564, can go away with jQuery 1.3 
     354                                        pTop += ($.browser.opera ? window.innerHeight : wnd.height()) - this.uiDialog.height(); 
    354355                                        break; 
    355356                                default: 
    356357                                case 'middle': 
    357                                         pTop += (wnd.height() - this.uiDialog.height()) / 2; 
     358                                        // Opera check fixes #3564, can go away with jQuery 1.3 
     359                                        pTop += (($.browser.opera ? window.innerHeight : wnd.height()) - this.uiDialog.height()) / 2; 
    358360                        } 
    359361                }