| Index: chrome/browser/resources/ntp4/tile_page.js
|
| diff --git a/chrome/browser/resources/ntp4/tile_page.js b/chrome/browser/resources/ntp4/tile_page.js
|
| index 829512cf553ef9c0086b1ad8e92f15ea429aea63..4b99af813bffa5941ddaa09536782b0efa52c7e5 100644
|
| --- a/chrome/browser/resources/ntp4/tile_page.js
|
| +++ b/chrome/browser/resources/ntp4/tile_page.js
|
| @@ -901,8 +901,9 @@ cr.define('ntp4', function() {
|
| this.tileElements_[adjustedIndex]);
|
| this.tileMoved(currentlyDraggingTile);
|
| } else {
|
| + var originalPage = currentlyDraggingTile.tilePage;
|
| this.addDragData(e.dataTransfer, adjustedIndex);
|
| - currentlyDraggingTile.tilePage.cleanupDrag();
|
| + originalPage.cleanupDrag();
|
| }
|
|
|
| // Dropping the icon may cause topMargin to change, but changing it
|
| @@ -924,7 +925,7 @@ cr.define('ntp4', function() {
|
| if (originalPage == this)
|
| return;
|
|
|
| - this.addDragData(null, this.tileElements_.length - 1);
|
| + this.addDragData(null, this.tileElements_.length);
|
| originalPage.cleanupDrag();
|
| },
|
|
|
|
|