mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
dbe8393bf5
commit
ab3431ae6c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user