Open
Bug 505202
Opened 17 years ago
Updated 4 years ago
tabs don't scroll to the right place after opening a link in a new tab when more tabs than the screen can accommodate are opened
Categories
(Firefox :: Tabbed Browser, defect)
Tracking
()
NEW
People
(Reporter: r0galik, Unassigned)
Details
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; FDM; Alexa Toolbar)
Build Identifier: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; FDM; Alexa Toolbar)
When many tabs are opened simultaneously, at least 1 more than the width of the screen, when I open a link in a new tab from a website that is on the left side (e.g. 3rd tab from the left) the tab bar fails to scroll to the position where I can see the new tab.
Reproducible: Always
Steps to Reproduce:
1. Open sufficient number of tabs for the arrows allowing tab scrolling to appear.
2. Click on the tab on the left side (first tab).
3. Scroll tabs to the right side (so that the last tab can be visible).
4. Open a link in a new tab from the website in the first tab.
Actual Results:
The tab browser scrolled automatically to the first tab.
Expected Results:
It should have scrolled to the right side, last tab
Please investigate the manner how the tabs scroll when there are many tabs open.
The bug also appears in Firefox 3.5.1, which is obvious.
Comment 1•17 years ago
|
||
3.5.1 linux - also does not scroll to expose correct tab.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 2•17 years ago
|
||
This is intentional. We won't scroll so far that the selected tab will become hidden.
Comment 3•16 years ago
|
||
Why not put a minimize button on each open tab so I can move between tabs/links at-will without having to look them up repetedly. I would also like to see Firefox and Mozilla link on my home page.
Comment 4•16 years ago
|
||
(In reply to comment #2)
> This is intentional. We won't scroll so far that the selected tab will become
> hidden.
Really is it intentional?
I've found why the tab bar scrolls to the current tab instead of new tabs. This "unexpected" scrolling is caused by ensureElementIsVisible() in the method moveTabTo() (which is called by the last section of addTab().) In trunk, this is the line:
http://hg.mozilla.org/mozilla-central/file/7f9ba4ef648d/browser/base/content/tabbrowser.xml#l1842
The line was introduced by the bug 343554 (Tab reordering shortcuts can move tabs offscreen), to ensure the *moved* tab visible when it is moved by keyboard shortcuts. Ctrl-Home was a shortcut to move the current tab to the leftmost position when the tab has focus (:focused state in CSS). However, on lately Firefox, tabs in the tabbrowser are never focused. As the result, this possibly strange behavior is left. In other words, the purpose of the line is different from the reason you told.
Comment 5•16 years ago
|
||
It's intentional per bug 412666.
Comment 6•16 years ago
|
||
Thanks, I see. But the issue (moveTabTo() API always scrolls to the current tab, even if it is not a new tab) is still there, so I may file a new bug for the topic.
Updated•4 years ago
|
Severity: minor → S4
You need to log in
before you can comment on or make changes to this bug.
Description
•