Closed Bug 423568 Opened 16 years ago Closed 16 years ago

Tree control with bookmarks selectItems does not appear to work...

Categories

(Firefox :: Bookmarks & History, defect)

x86
Windows Vista
defect
Not set
minor

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: rwag, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9b4) Gecko/2008030714 Firefox/3.0b4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9b4) Gecko/2008030714 Firefox/3.0b4

I wrote an add-on that uses a tree filled with bookmark folders only (via setting the place of the tree).  The tree is set to select only one item at a time.  

The selectItems call never worked in my tree.  As a work-around I select items down the row until an itemId matches what I want.

I also notice that selecting an item in a single-selection tree does not scroll the tree's control to that area.  As a result sometimes I have something selected but it is not visible unless you scroll down.

Reproducible: Always

Steps to Reproduce:
1.
2.
3.



There are two issues here.

1) The bigger issue is I could never get selectItems to work for my tree.
My work-around is as-follows.
for (var i = 0; i < rowCount; i++){
      bookmarksTree.view.selection.select(i);
      var folderNode = bookmarksTree.selectedNode;
      var itemId = folderNode.itemId;
      if (itemId == idValue)
	break;
      else
	bookmarksTree.view.selection.clearSelection();
    }

2) The second issue is that selecting a row in a single-selection tree should probably always ensure that the selection is visible/scrolled-to.
Component: Bookmarks → Places
QA Contact: bookmarks → places
Version: unspecified → Trunk
Bulk closing all UNCONFIRMED bugs dealing with places that haven't had any bug activity in over 120 days, have no votes, and are not enhancement requests.

If you are still experiencing this issue in Firefox 3.0 or later, please re-open the bug with steps to reproduce (if they were not part of the original comment).
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → INCOMPLETE
Bug 451915 - move Firefox/Places bugs to Firefox/Bookmarks and History. Remove all bugspam from this move by filtering for the string "places-to-b-and-h".

In Thunderbird 3.0b, you do that as follows:
Tools | Message Filters
Make sure the correct account is selected. Click "New"
Conditions: Body   contains   places-to-b-and-h
Change the action to "Delete Message".
Select "Manually Run" from the dropdown at the top.
Click OK.

Select the filter in the list, make sure "Inbox" is selected at the bottom, and click "Run Now". This should delete all the bugspam. You can then delete the filter.

Gerv
Component: Places → Bookmarks & History
QA Contact: places → bookmarks
You need to log in before you can comment on or make changes to this bug.