From a07256457348c2b0b89f4250689ff687625eb894 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Thu, 12 Feb 2009 14:11:54 -0800 Subject: [PATCH] Fixed a bug in which a drag-and-dropped note occasionally didn't resize back to its original size. --- NEWS | 2 ++ static/js/Editor.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/NEWS b/NEWS index 5f30371..1da77cf 100644 --- a/NEWS +++ b/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. diff --git a/static/js/Editor.js b/static/js/Editor.js index 139e22a..d94aa08 100644 --- a/static/js/Editor.js +++ b/static/js/Editor.js @@ -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(); } }