Changeset 13668

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

fixes #6724 in branch 1.1

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/1.1/dijit/_editor/plugins/EnterKeyHandling.js

    r12207 r13668  
    177177                                range.startContainer, range.startOffset)){ 
    178178                        dojo.place(newblock, block.blockNode, block.blockNode === block.blockContainer ? "first" : "before"); 
    179                         if(this.editor.height){ 
     179                        if(newblock.nextSibling && this.editor.height){ 
    180180                                //browser does not scroll the caret position into view, do it manually 
    181                                 newblock.scrollIntoView(false); 
     181                                newblock.nextSibling.scrollIntoView(false); 
    182182                        } 
    183183                        _letBrowserHandle = false;