Setting a slight delay on the resize so that it works properly.
This commit is contained in:
parent
f36d6b9500
commit
36e1843f66
|
@ -187,8 +187,9 @@ Editor.prototype.create_iframe = function ( position_after ) {
|
|||
else
|
||||
appendChildNodes( "notes", note_holder );
|
||||
|
||||
var self = this;
|
||||
this.set_iframe_contents( this.contents() );
|
||||
this.resize();
|
||||
setTimeout( function() { self.resize(); }, 1 );
|
||||
removeElementClass( this.iframe, "invisible" );
|
||||
this.enable_design_mode();
|
||||
}
|
||||
|
|
Reference in New Issue