Bug Tracker

Ticket #2357: uidialog-positionoptions.patch

File uidialog-positionoptions.patch, 0.7 kB (added by mnichols, 11 months ago)

Adds options to position options

  • ui.dialog.js

     
    146146                        top += (wnd.height() / 2) - (uiDialog.height() / 2); 
    147147                        left += 0; 
    148148                        break; 
     149                    case 'top right': 
     150                        top += 0; 
     151                        left += (wnd.width()) - (uiDialog.width()); 
     152                        break; 
     153                    case 'bottom left': 
     154                        top += (wnd.height()) - (uiDialog.height()); 
     155                        left += 0; 
     156                        break; 
     157                    case 'bottom right': 
     158                        top += (wnd.height()) - (uiDialog.height()); 
     159                        left += (wnd.width()) - (uiDialog.width()); 
     160                        break;                   
    149161                    default: 
    150162                        //center 
    151163                        top += (wnd.height() / 2) - (uiDialog.height() / 2);