Closed Bug 338889 Opened 18 years ago Closed 16 years ago

Failure if you drag column to position after and adjacent to itself - error "Error: col is null"

Categories

(Core :: XUL, defect)

x86
Windows 2000
defect
Not set
minor

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: ssitter, Unassigned)

References

Details

Failure if you drag column to position after itself

After check in for Bug 330236 and Bug 330170 drag and drop of columns works now better. But if you try to drag columns to a position after itself it still fails.

Steps to Reproduce:
1. Find a tree with draggable columns 
   (e.g. event list in Sunbird or mail list in Thunderbird)
2. Drag a column and drop it before itself. 
   Example: 1 2 3 - drag column 2 to be inserted between 1 and 2 and drop
   --> Works ok
3. Drag a column and drop it after itself. 
   Example: 1 2 3 - drag column 2 to be inserted between 2 and 3 and drop
   --> Failure


Actual Results:
Even though the mouse button has been released the tree widget still shows the 'drop column here' indicator (vertical line between columns). 

Error in JavaScript console:
    Error: cols[0] has no properties
    Source File: chrome://global/content/bindings/tree.xml Line: 157

Moving 'drop column here' indicator to another position and performing a mouse click moves the initial dragged column to this position.


Expected Results:
If column is dragged to a position after itself no error should happen and the column order should not change.


Tested with Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a1) Gecko/20060522 Mozilla Sunbird/0.3a2+ and Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a1) Gecko/20060522 Thunderbird/3.0a1
*** Bug 348910 has been marked as a duplicate of this bug. ***
(In reply to comment #1)
> *** Bug 348910 has been marked as a duplicate of this bug. ***

Confirming based on dupe.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Retest with Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a3pre) Gecko/20070223 Thunderbird/3.0a1 ID:2007022303 [cairo]: Issue still exists.

Error: cols[0] has no properties
Source File: chrome://global/content/bindings/tree.xml
Line: 177
the error on trunk is now ...

Error: col is null
Source File: chrome://global/content/bindings/tree.xml
Line: 165

secondary effect, the column header text label(?) changes from black to white
Assignee: Jan.Varga → nobody
Severity: normal → minor
Summary: Failure if you drag column to position after itself → Failure if you drag column to position after and adjacent to itself - error "Error: col is null"
I can't reproduce this error anymore using Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9pre) Gecko/2008041300 Calendar/0.6a1.

Seems this was fixed by Bug 407453.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → WORKSFORME
Component: XP Toolkit/Widgets: Trees → XUL
QA Contact: xptoolkit.trees → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.