Changeset 13667

Show
Ignore:
Timestamp:
05/10/08 09:15:03 (6 days ago)
Author:
liucougar
Message:

refs #6724: fixed in trunk

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dijit/trunk/_editor/plugins/EnterKeyHandling.js

    r13314 r13667  
    166166                        range = selection.getRangeAt(0); 
    167167                } 
     168 
    168169                var newblock = this.editor.document.createElement(this.blockNodeForEnter); 
    169170                newblock.innerHTML=this.bogusHtmlContent; 
     
    187188                                range.startContainer, range.startOffset)){ 
    188189                        dojo.place(newblock, block.blockNode, block.blockNode === block.blockContainer ? "first" : "before"); 
    189                         if(this.editor.height){ 
     190                        if(newblock.nextSibling && this.editor.height){ 
    190191                                //browser does not scroll the caret position into view, do it manually 
    191                                 newblock.scrollIntoView(false); 
     192                                newblock.nextSibling.scrollIntoView(false); 
    192193                        } 
    193194                        _letBrowserHandle = false;