Closed Bug 308234 Opened 19 years ago Closed 19 years ago

Clicks in folder tree select folder below click

Categories

(Thunderbird :: General, defect)

x86
OS/2
defect
Not set
major

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 286555

People

(Reporter: mozilla, Assigned: mscott)

Details

This is a problem that AFAIK still exists in both the 1.8 branch and the current
trunk of Thunderbird, but only on OS/2.

Right after starting Thunderbird, mouse clicks in the folder tree on the left
will select the folder right below the one that was the target of the mouse
click. A click on the account name will instead select the first folder etc. As
Rich already noted in the newsgroup in July, once the window was resized (in
height!), it works correctly.

As I currently only experience this in this one control in TB I file this as a
TB bug for now, but actually I suspect that something is wrong in the way the
XUL <tree> element gets initialized on OS/2. In this case this would be <tree>
with id="folderTree" in messenger.xul.

The following is a stupid workaround that helps with the problem but not the
cause (but could be used for now in OS/2 builds to get a 1.5beta1 out or so):

--- content\messenger\commandglue.js.orig       2005-06-01 20:58:58.000000000 +0000
+++ content\messenger\commandglue.js    2005-09-12 23:51:36.000000000 +0000
@@ -747,10 +747,13 @@
 function FolderPaneSelectionChange()
 {
     var folderTree = GetFolderTree();
     var folderSelection = folderTree.view.selection;

+    this.resizeBy(0,-1);
+    this.resizeBy(0,+1);
+
     // This prevents a folder from being loaded in the case that the user
     // has right-clicked on a folder different from the one that was
     // originally highlighted.  On a right-click, the highlight (selection)
     // of a row will be different from the value of currentIndex, thus if
     // the currentIndex is not selected, it means the user right-clicked

*** This bug has been marked as a duplicate of 286555 ***
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.