Tab close (X) button disappearing Topic is solved

Talk about code development, features, specific bugs, enhancements, patches, and similar things.
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.

This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.

Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
tor11

Tab close (X) button disappearing

Unread post by tor11 » 2015-10-27, 16:15

Hello,
Tab closing (X) will not be there after certain number of tabs (11-12) is opened.

I would like to have (X) on all tabs, no matter the amount.

This is probably by design but (X) button is removed when there is still plenty of space for it anyway..

Is this possible to configure this or would you consider to make it optional if it isn't?

mgagnonlv
Lunatic
Lunatic
Posts: 266
Joined: 2013-03-05, 02:06
Location: Canada

Re: Tab close (X) button disappearing

Unread post by mgagnonlv » 2015-10-27, 19:43

I *think* it is related to the value of "browser.tabs.tabClipWidth", which equals 140 pixels.
Basically, if tabs are wider than 140 pixels, the "x" will appear on all tabs. If tabs are narrower than 140 pixels, the "x" will only appear on the active tab. Because of this, non-active tabs display a bit more text (2-3 extra letters); however, to close a tab, you need to make it active first, so you need two clicks. To change the value:

– In a new window, type about:config
– Search for "browser.tabs.tabClipWidth"
– Right-click on the line and select "Modify"
– Enter a new value.

Since the minimum width for tabs is 90 or 100 px, you will have "x" on all tabs if you enter a low value like 60. Don't type a too-low value because you will see only an "x" for pinned tabs. Conversely, for those who want to see more of the title of their tabs, enter a larger value in that field.
Michel Gagnon
Montréal (Québec, Canada)

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35636
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Tab close (X) button disappearing

Unread post by Moonchild » 2015-10-27, 21:30

This is related to having the tabs close buttons visible "when there is enough room". Mgagnon is correct that changing the ClipWidth value to a lower number will adjust what the browser thinks "is enough room" for the close button.

Pale Moon Commander has an easy set of controls for this -- also, if you always want to see more of the title, you can set it to only show the close button on the active tab and never otherwise.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

sIDcORK

Re: Tab close (X) button disappearing

Unread post by sIDcORK » 2015-10-27, 22:13

In case you don't know, middle clicking a tab closes it which some find as easy as clicking an (X). It is an option, nothing wrong with using (X).

Advid

Re: Tab close (X) button disappearing

Unread post by Advid » 2016-02-05, 15:12

sIDcORK wrote:Middle clicking a tab closes it
Thanks for the tip!
This one should be in good position of a "Did you know..." tips and tricks somewhere...

Still... I really missed the old close tab button in its fixed position: I used to repeatedly click it without moving the cursor to close a bunch of recent tabs. Quite convenient.

Locked