Changeset 1184

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

Dialog: Fixed #3221: User outerWidth/Height for positioning.

Files:
1 modified

Legend:

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

    r1183 r1184  
    336336                                        break; 
    337337                                case 'right': 
    338                                         pLeft += wnd.width() - this.uiDialog.width(); 
     338                                        pLeft += wnd.width() - this.uiDialog.outerWidth(); 
    339339                                        break; 
    340340                                default: 
    341341                                case 'center': 
    342                                         pLeft += (wnd.width() - this.uiDialog.width()) / 2; 
     342                                        pLeft += (wnd.width() - this.uiDialog.outerWidth()) / 2; 
    343343                        } 
    344344                } 
     
    352352                                case 'bottom': 
    353353                                        // Opera check fixes #3564, can go away with jQuery 1.3 
    354                                         pTop += ($.browser.opera ? window.innerHeight : wnd.height()) - this.uiDialog.height(); 
     354                                        pTop += ($.browser.opera ? window.innerHeight : wnd.height()) - this.uiDialog.outerHeight(); 
    355355                                        break; 
    356356                                default: 
    357357                                case 'middle': 
    358358                                        // Opera check fixes #3564, can go away with jQuery 1.3 
    359                                         pTop += (($.browser.opera ? window.innerHeight : wnd.height()) - this.uiDialog.height()) / 2; 
     359                                        pTop += (($.browser.opera ? window.innerHeight : wnd.height()) - this.uiDialog.outerHeight()) / 2; 
    360360                        } 
    361361                }