piroor/treestyletab — Issue #196: Open in new tab function places child tab in incorrect position
Author: Vanav
Created: 2011-12-14 19:05:33+00:00
State: open

I want to open bookmarks, history and search results in new tab by default — a child of current tab. To achieve this I use Tab Utilities or Tab Mix Plus. After the last update of Tree Style Tab this new tab is placed incorrectly: as first level tab (root), but still in the middle of current tree.

**Steps to reproduce**
1. Install Tab Utilities. Check settings:
a) Tabs — Tab Opening — Open new tab for: [x] Bookmarks/History, [x] Search
b) Tabs — Tab Opening — Open new tabs next to current tab which are from: [x] All
or
1. Install Tab Mix Plus. Check settings:
a) Events — New Tabs — [x] Open other tabs next to current tab,
b) Events — Tab Opening — Open tabs from — [x] Bookmarks, [x] History, [x] Search.
2. Create a tree with 3 tabs: a) root, b) child of a root, c) child of a child (or second child of a root).
3. Select second tab b)
4. Make a search from a search bar or click on a bookmark.
**Expected**
New tab is added as child of current tab b).
**Actual**
New tab is added as a new root in the middle of current tree. Collapse/expand on current tree ignores new root in the middle of current tree.

How can I fix this?