Changeset 496


Ignore:
Timestamp:
04/30/06 05:30:11 (13 years ago)
Author:
gogo
Message:

Fix scrolling for long panels. Refer ticket:543

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/htmlarea.css

    r495 r496  
    229229} 
    230230 
     231.htmlarea .panel { overflow:auto; } 
    231232.htmlarea .panels.left  .panel { border-right:none; border-left:none; } 
    232233.htmlarea .panels.left  h1     { border-right:none;  } 
  • trunk/htmlarea.js

    r484 r496  
    19021902    edcellheight -= parseInt(this.config.panel_dimensions.bottom, 10); 
    19031903  } 
    1904   this._iframe.style.height = edcellheight + 'px'; 
    1905  
     1904  this._iframe.style.height = edcellheight + 'px';   
     1905  this._framework.rp_cell.style.height = edcellheight + 'px'; 
     1906  this._framework.lp_cell.style.height = edcellheight + 'px'; 
     1907  
    19061908  var edcellwidth = width; 
    19071909  if ( panel_is_alive('left') ) 
     
    19111913  if ( panel_is_alive('right') ) 
    19121914  { 
    1913     edcellwidth -= parseInt(this.config.panel_dimensions.right, 10); 
     1915    edcellwidth -= parseInt(this.config.panel_dimensions.right, 10);     
    19141916  } 
    19151917  this._iframe.style.width = edcellwidth + 'px'; 
     
    19171919  this._textArea.style.height = this._iframe.style.height; 
    19181920  this._textArea.style.width  = this._iframe.style.width; 
    1919  
     1921   
     1922  // (re)size the left and right panels so they are equal the editor height 
     1923  for(var i = 0; i < this._panels.left.panels.length; i++) 
     1924  { 
     1925    this._panels.left.panels[i].style.height = this._iframe.style.height; 
     1926  } 
     1927 
     1928  for(var i = 0; i < this._panels.right.panels.length; i++) 
     1929  { 
     1930    this._panels.right.panels[i].style.height = this._iframe.style.height; 
     1931  }   
     1932   
     1933   
    19201934  this.notifyOf('resize', {width:this._htmlArea.offsetWidth, height:this._htmlArea.offsetHeight}); 
    19211935}; 
     
    19271941  if ( side == 'left' || side == 'right' ) 
    19281942  { 
    1929     div.style.width = this.config.panel_dimensions[side]; 
     1943    div.style.width  = this.config.panel_dimensions[side]; 
     1944    if(this._iframe) div.style.height = this._iframe.style.height;      
    19301945  } 
    19311946  HTMLArea.addClasses(div, 'panel'); 
     
    19371952  return div; 
    19381953}; 
     1954 
    19391955 
    19401956HTMLArea.prototype.removePanel = function(panel) 
Note: See TracChangeset for help on using the changeset viewer.