Fixed a bug in which a drag-and-dropped note occasionally didn't resize back to its original size.
This commit is contained in:
parent
38479d455a
commit
a072564573
2
NEWS
2
NEWS
|
@ -3,6 +3,8 @@
|
|||
the next note to display incorrectly
|
||||
* Fixed a bug in Internet Explorer in which opening a note by following a link
|
||||
didn't display the opened note correctly.
|
||||
* Fixed a bug in which a drag-and-dropped note occasionally didn't resize back
|
||||
to its original size.
|
||||
* Re-fixed a bug in which hiding a focused note could (temporarily) leave an
|
||||
empty gap at the bottom of the page.
|
||||
|
||||
|
|
|
@ -865,6 +865,7 @@ Editor.prototype.drop = function( event ) {
|
|||
setElementPosition( this.holder, getElementPosition( hover_drop_target ) );
|
||||
swapDOM( hover_drop_target, this.holder );
|
||||
removeElement( "note_drag_source_area" );
|
||||
this.resize();
|
||||
this.highlight();
|
||||
signal( this, "moved", this, this.previous_editor(), this.next_editor() );
|
||||
}
|
||||
|
@ -878,6 +879,7 @@ Editor.prototype.drop = function( event ) {
|
|||
var drag_source_area = getElement( "note_drag_source_area" );
|
||||
setElementPosition( this.holder, getElementPosition( drag_source_area ) );
|
||||
removeElement( drag_source_area );
|
||||
this.resize();
|
||||
this.highlight();
|
||||
}
|
||||
}
|
||||
|
|
Reference in New Issue