Changeset 1141 for trunk/modules/Dialogs


Ignore:
Timestamp:
12/01/08 14:28:31 (11 years ago)
Author:
ray
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/Dialogs/XinhaDialog.js

    r1138 r1141  
    172172  // rootElem.style.MozUserSelect = "none"; 
    173173   
    174   rootElem.className = 'dialog'; 
     174  rootElem.className = 'dialog' + (this.modal ? ' modal' : ' modeless'); 
     175  if (Xinha.is_chrome) rootElem.className += ' chrome'; // Hack because border-raadius & box-shadow don't go well together in chrome 
    175176   
    176177 // this.background[1].appendChild(rootElem); 
     
    683684  var rootElemStyle = dialog.rootElem.style; 
    684685   
    685   dialog.size.top  = dialog.rootElem.style.top; 
    686   dialog.size.left = dialog.rootElem.style.left; 
     686  dialog.size.top  = rootElemStyle.top; 
     687  dialog.size.left = rootElemStyle.left; 
    687688   
    688689  if (!this.modal) 
Note: See TracChangeset for help on using the changeset viewer.