Changeset 664 for trunk


Ignore:
Timestamp:
01/16/07 05:17:21 (13 years ago)
Author:
gogo
Message:

ticket:816 In IE, when showing a panel the change in the dimension of
the iframe caused the scroll point to change. Modified it to scroll to
che parent element of the selection point, this is about as close as we
can get.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/XinhaCore.js

    r661 r664  
    20422042    panel.style.display = 'none'; 
    20432043    this.notifyOf('panel_change', {'action':'hide','panel':panel}); 
     2044    this.scrollToElement(); 
    20442045  } 
    20452046}; 
     
    20492050  if ( panel && panel.style.display == 'none' ) 
    20502051  { 
    2051     panel.style.display = ''; 
     2052    panel.style.display = '';     
    20522053    this.notifyOf('panel_change', {'action':'show','panel':panel}); 
     2054    this.scrollToElement(); 
    20532055  } 
    20542056}; 
     
    41834185Xinha.prototype.scrollToElement = function(e) 
    41844186{ 
    4185   if ( Xinha.is_gecko ) 
     4187  if(!e) 
     4188  { 
     4189    e = this.getParentElement(); 
     4190    if(!e) return; 
     4191  } 
     4192   
     4193  if (1 || Xinha.is_gecko ) 
    41864194  { 
    41874195    var top  = 0; 
  • trunk/examples/testbed.html

    r663 r664  
    5555      xinha_plugins = xinha_plugins ? xinha_plugins : 
    5656      [ 
    57         'FullPage', 'SpellChecker' 
     57        'CharacterMap' 
    5858      ]; 
    5959             // THIS BIT OF JAVASCRIPT LOADS THE PLUGINS, NO TOUCHING  :) 
     
    8585       xinha_config = xinha_config ? xinha_config : new Xinha.Config(); 
    8686       xinha_config.fullPage = true; 
     87       xinha_config.CharacterMap.mode = 'panel'; 
    8788/* 
    8889       // We can load an external stylesheet like this - NOTE : YOU MUST GIVE AN ABSOLUTE URL 
  • trunk/plugins/CharacterMap/character-map.js

    r431 r664  
    116116    if (HTMLArea.is_ie) editor.focusEditor(); 
    117117    editor.insertHTML( entite ); 
    118     self._isActive = false; 
    119     editor.hidePanel( editor._CharacterMap ); 
     118    //self._isActive = false; 
     119    //editor.hidePanel( editor._CharacterMap ); 
    120120    return false; 
    121121  }; 
Note: See TracChangeset for help on using the changeset viewer.