Changeset 13156

Show
Ignore:
Timestamp:
03/20/08 05:40:23 (10 months ago)
Author:
alex
Message:

merging supplied patch from Mehmet Akin of IBM to fix a pretty bad editing behavior issue on IE. I've tested in both standards and quirks mode on IE 6 and the results appear to be the same. I'm not sure we need another patch. Fixes #6112

Location:
dijit/trunk
Files:
1 added
1 modified

Legend:

Unmodified
Added
Removed
  • dijit/trunk/_editor/RichText.js

    r13138 r13156  
    862862                }else if(this.editNode && this.editNode.focus){ 
    863863                        // editNode may be hidden in display:none div, lets just punt in this case 
    864                         this.editNode.focus(); 
     864                        //this.editNode.focus(); -> causes IE to scroll always (strict and quirks mode) to the top the Iframe  
     865                        // if we fire the event manually and let the browser handle the focusing, the latest   
     866                        // cursor position is focused like in FF                          
     867                        this.iframe.fireEvent('onfocus', document.createEventObject()); // createEventObject only in IE  
    865868//              }else{ 
    866869// TODO: should we throw here?