Bug 940387 - when dragging wide items in Australis' palette, don't fix insertion point to first item in row, r=mikedeboer

This commit is contained in:
Gijs Kruitbosch 2013-12-09 13:29:30 +01:00
parent 3c46d14f74
commit 973a1eb747

View File

@ -101,7 +101,7 @@ AreaPositionManager.prototype = {
let doc = aContainer.ownerDocument;
let draggedItem = doc.getElementById(aDraggedItemId);
// If dragging a wide item, always pick the first item in a row:
if (draggedItem &&
if (this._inPanel && draggedItem &&
draggedItem.classList.contains(CustomizableUI.WIDE_PANEL_CLASS)) {
return this._firstInRow(closest);
}