Changeset 167


Ignore:
Timestamp:
05/13/05 21:04:25 (15 years ago)
Author:
gogo
Message:

Fix for inline-dialog with the new framing.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/htmlarea.js

    r166 r167  
    12511251  fw.bp_row.style.verticalAlign = 'top'; 
    12521252  fw.sb_row.style.verticalAlign = 'top'; 
    1253  
     1253  fw.ed_cell.style.position     = 'relative'; 
    12541254  // Put the cells in the rows        set col & rowspans 
    12551255  // note that I've set all these so that all panels are showing 
     
    16511651    this._textArea.style.height = '100%'; 
    16521652    this._textArea.style.width  = '100%'; 
     1653 
     1654    this.notifyOf('resize', {width:this._htmlArea.offsetWidth, height:this._htmlArea.offsetHeight}); 
    16531655  } 
    16541656 
  • trunk/inline-dialog.js

    r149 r167  
    1111  this.rootElem.style.position = 'absolute'; 
    1212  this.rootElem.style.display  = 'none'; 
    13  
    14   this.width  = parseInt(this.rootElem.style.width  = this.editor._iframe.style.width); 
    15   this.height = this.rootElem.style.height = (parseInt(this.editor._iframe.style.height)+this.editor._statusBar.offsetHeight-2)+'px'; 
    16    
     13  this.editor._framework.ed_cell.insertBefore(this.rootElem, this.editor._framework.ed_cell.firstChild); 
     14  this.rootElem.style.width  = this.width  =  this.editor._framework.ed_cell.offsetWidth; 
     15  this.rootElem.style.height = this.height =  this.editor._framework.ed_cell.offsetHeight; 
     16 
    1717  var dialog = this; 
    1818  if(typeof localizer == 'function') 
     
    5959  this.rootElem.innerHTML = html; 
    6060 
    61   this.editor.innerEditor.appendChild(this.rootElem); 
     61 
    6262 
    6363 
     
    6666      function(e, args) 
    6767      { 
    68         dialog.width  = parseInt(dialog.rootElem.style.width  = args.editorWidth  + 'px'); 
    69         dialog.height = dialog.rootElem.style.height = (args.editorHeight+dialog.editor._statusBar.offsetHeight-2)+'px'; 
     68        dialog.rootElem.style.width  = dialog.width  =  dialog.editor._framework.ed_cell.offsetWidth; 
     69        dialog.rootElem.style.height = dialog.height =  dialog.editor._framework.ed_cell.offsetHeight; 
    7070        dialog.onresize(); 
    7171      } 
     
    103103  this.editor._iframe.style.visibility   = this._restoreTo[1]; 
    104104  this.editor.showPanels(this._restoreTo[2]); 
    105    
     105 
    106106  // Restore the selection 
    107107  if(HTMLArea.is_ie) 
Note: See TracChangeset for help on using the changeset viewer.