Checking in fix for bug 458856 - tree horizontal scroll bar messes up drag-n-drop column rearranging. r=neil/sr=roc

This commit is contained in:
Nick Kreeger 2008-10-24 14:48:33 -07:00
parent dbe8393bf5
commit ab3431ae6c

View File

@ -209,11 +209,12 @@
var col = this.columns.getFirstColumn();
var lastCol = null;
var currentX = this.boxObject.x;
var adjustedX = aX + this.treeBoxObject.horizontalPosition;
while (col) {
var cw = col.element.boxObject.width;
if (cw > 0) {
currentX += cw;
if (currentX - (cw * aThresh) > aX)
if (currentX - (cw * aThresh) > adjustedX)
return col.element;
}
lastCol = col;