Skip to content

make tabs fill up tab bar space in multiline mode - #427

Open
redyoshi49q wants to merge 1 commit into
tabkit:masterfrom
redyoshi49q:multiline_tab_width_fix
Open

make tabs fill up tab bar space in multiline mode#427
redyoshi49q wants to merge 1 commit into
tabkit:masterfrom
redyoshi49q:multiline_tab_width_fix

Conversation

@redyoshi49q

Copy link
Copy Markdown

...Hi. It's me again.

This should resolve issue #160 . I've tested the changes with a multiline tab bar setup, and from the looks of things, the section of code I tweaked shouldn't get executed for other configurations.

A few variable declarations were moved to the beginning of the relevant function so that they would be in scope in appropriate places (such as the function call to set the value used for the minimum tab width in the CSS).

The code accounts for the size of tab borders, but a constant value (found by inspecting the chrome of the Pale Moon browser with the browser dev tools) gets used for that rather than a value derived from the browser environment itself. This could result in incorrectly sized tabs (and a return of the gap to the right of tabs that this commit attempts to address) for specific browser window widths on environments that have different configurations for their tabs (such as other web browsers, browsers running other extensions that affect the tabs, or other versions of Pale Moon that change the default appearance of tabs).

Also, the tab width resizing seems to slightly lag behind the horizontal resizing of the tab bar. I'm not sure whether making this behavior snappier is plausible or not.

A few variable declarations were moved to the beginning of the relevant function
so that they would be in scope in appropriate places (such as the function call
to set the value used for the minimum tab width in the CSS).
@redyoshi49q
redyoshi49q requested a review from PikachuEXE as a code owner August 6, 2026 03:30
@PikachuEXE

Copy link
Copy Markdown
Member

OK let's run this for ~ a month and if no issue I will cut a release

tabkit2_0.15.0-2026-08-06-114151.xpi.zip

Or maybe you have run this on your own browser for some time already?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants