Changeset 513


Ignore:
Timestamp:
05/08/06 09:29:49 (14 years ago)
Author:
gogo
Message:

I have no idea why, but moving this block of code up a couple of lines means that IE works again. It shouldn't make any
difference at all. I can only surmise that there is some weird timing issue.

ticket:793 and ticket:766

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/htmlarea.js

    r510 r513  
    19111911  this._framework.rp_cell.style.height = edcellheight + 'px'; 
    19121912  this._framework.lp_cell.style.height = edcellheight + 'px'; 
    1913   
    1914   var edcellwidth = width; 
    1915   if ( panel_is_alive('left') ) 
    1916   { 
    1917     edcellwidth -= parseInt(this.config.panel_dimensions.left, 10); 
    1918   } 
    1919   if ( panel_is_alive('right') ) 
    1920   { 
    1921     edcellwidth -= parseInt(this.config.panel_dimensions.right, 10);     
    1922   } 
    1923   this._iframe.style.width = edcellwidth + 'px'; 
    1924  
    1925   this._textArea.style.height = this._iframe.style.height; 
    1926   this._textArea.style.width  = this._iframe.style.width; 
    19271913   
    19281914  // (re)size the left and right panels so they are equal the editor height 
     
    19311917    this._panels.left.panels[i].style.height = this._iframe.style.height; 
    19321918  } 
    1933  
     1919   
    19341920  for(var i = 0; i < this._panels.right.panels.length; i++) 
    19351921  { 
     
    19371923  }   
    19381924   
    1939    
     1925  var edcellwidth = width; 
     1926  if ( panel_is_alive('left') ) 
     1927  { 
     1928    edcellwidth -= parseInt(this.config.panel_dimensions.left, 10); 
     1929  } 
     1930  if ( panel_is_alive('right') ) 
     1931  { 
     1932    edcellwidth -= parseInt(this.config.panel_dimensions.right, 10);     
     1933  } 
     1934  this._iframe.style.width = edcellwidth + 'px'; 
     1935 
     1936  this._textArea.style.height = this._iframe.style.height; 
     1937  this._textArea.style.width  = this._iframe.style.width; 
     1938      
    19401939  this.notifyOf('resize', {width:this._htmlArea.offsetWidth, height:this._htmlArea.offsetHeight}); 
    19411940}; 
Note: See TracChangeset for help on using the changeset viewer.