Skip to content

Fixes/browser seperators rendering#1070

Merged
wieslawsoltes merged 5 commits intowieslawsoltes:masterfrom
danwalmsley:fixes/browser-seperators-rendering
Mar 10, 2026
Merged

Fixes/browser seperators rendering#1070
wieslawsoltes merged 5 commits intowieslawsoltes:masterfrom
danwalmsley:fixes/browser-seperators-rendering

Conversation

@danwalmsley
Copy link
Contributor

Due to not snapping to pixels the browser tab separators would shimmer and toggle visibility as the layout changes.

@wieslawsoltes
Copy link
Owner

@codex review

@wieslawsoltes
Copy link
Owner

@codex fix ci failures

@chatgpt-codex-connector
Copy link

Codex couldn't complete this request. Try again later.

@wieslawsoltes
Copy link
Owner

@codex fix ci failures

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c9ad9a0db4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +221 to +223
var endX = arrangedIndex == visibleCount - 1
? finalSize.Width
: RoundToDevicePixels(x + tabWidth);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Avoid stretching the last tab to panel width

When tabWidth is capped (for example, wide viewport with a few tabs), this branch makes the final visible tab end at finalSize.Width, so it absorbs all trailing space instead of keeping the uniform width computed by ResolveTabWidth. In a 1000px layout with 3 tabs and MaxTabWidth=220, the last tab becomes ~552px wide while earlier tabs stay 220px, which breaks the panel’s uniform-tab contract and contradicts the existing headless expectation that all tabs remain equal width (tests/Dock.Avalonia.HeadlessTests/DelayedUniformTabPanelTests.cs, UsesUniformMaxWidthWhenSpaceIsAvailable).

Useful? React with 👍 / 👎.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

addressed in 6666527

@chatgpt-codex-connector
Copy link

Codex couldn't complete this request. Try again later.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants