Skip to content

Fix maximized title bar - #5275

Open
kukirin-ui wants to merge 2 commits into
ChrisTitusTech:mainfrom
kukirin-ui:fix-maximized-title-bar
Open

kukirin-ui wants to merge 2 commits into
ChrisTitusTech:mainfrom
kukirin-ui:fix-maximized-title-bar

Conversation

@kukirin-ui

Copy link
Copy Markdown

Description

Issue related to PR

  • Resolves #

PR human checks

  • This PR is not a blind result of a prompt 'make this project better, no mistakes'
  • I've read the contributing guidelines

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-21T17:55:03.959087Z a808052 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • New Features

    • When a window is maximized, its resize border now follows the system’s configured resize-border thickness, providing consistent behavior with Windows.
  • Bug Fixes

    • Corrected the maximized-window resize border so it uses the appropriate system setting.

The XAML adds a maximized-state trigger that sets the window resize-border thickness to the system value. A test checks the trigger, zero caption height, and Window style target.

Changes: Maximized Window Border

Layer / File(s) Summary
Maximized-state border trigger and test
xaml/inputXML.xaml, pester/xaml.Tests.ps1
The window style sets the system resize-border thickness when maximized. The test checks the trigger, zero caption height, and Window style target.

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Bug fix

Possibly related PRs

Suggested labels: bug

Merge Risk: Minimal · up to a8080

The change applies the system resize-border inset when the window is maximized so the title bar stays visible. It is small, localized to window styling, and easy to revert, so merge risk is minimal.

Architecture risk: Low · up to a8080

The change affects 2 systems.

Changed systems: pester, xaml

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — pester (service) was modified; 1 changed file maps to changed impact.
  • observed — xaml (service) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in pester/xaml.Tests.ps1: Added a test asserting the WindowChrome caption height is zero and that a Window style’s maximized-state trigger sets BorderThickness to the system resize-border thickness.
  • observed — Modified behavior in xaml/inputXML.xaml: Adds a Window style trigger that applies the system resize-border thickness when WindowState is Maximized.
Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "Fix maximized title bar" matches the changeset. The XAML change adds a maximized-state trigger that sets the resize border thickness, and the test checks that behavior. The title names the …
Description check Passed The description contains template text and placeholders, but it is related to the changeset. It mentions code-reference pages and PR labeling, and it links to an issue template. It does not describe t…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "Fix maximized title bar" matches the changeset. The XAML change adds a maximized-state trigger that sets the resize border thickness, and the test checks that behavior. The title names the fix and the affected area. It does not name the exact mechanism, which is acceptable for a short title.

Full details: Description check

Explanation

The description contains template text and placeholders, but it is related to the changeset. It mentions code-reference pages and PR labeling, and it links to an issue template. It does not describe the specific fix, so it is weak. It still passes the lenient check because it relates to the pull request process and the changed files.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8229102d-48eb-4920-bd95-7c562b68ca1e
Commits

Reviewing files that changed from the base of the PR and between 70c23c8 and a808052.

Files selected for processing: 2

  • pester/xaml.Tests.ps1
  • xaml/inputXML.xaml

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

@coderabbitai coderabbitai Bot added the bug Something isn't working label Nov 21, 2026

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

Copy link
Copy Markdown

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: a808052af6

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread xaml/inputXML.xaml
<Style TargetType="Window">
<Style.Triggers>
<Trigger Property="WindowState" Value="Maximized">
<Setter Property="BorderThickness" Value="{x:Static SystemParameters.WindowResizeBorderThickness}"/>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Inset content for the padded maximized frame

On Windows 10/11, maximizing this WindowChrome window places the HWND past the work area by both the resize frame and the DWM padded border. This single WindowResizeBorderThickness inset only compensates for the first component, so WPFMainGrid—including the title bar and caption buttons—remains clipped by the padded-border width. Add a corresponding maximized-state inset to the content grid, and verify the maximized path manually because the added Pester test only checks that this setter exists.

AGENTS.md reference: AGENTS.md:L117-L117

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Good point. I can only test on a phone right now, so I can't verify the padded-border case on Windows 10/11. If a maintainer can maximize the window and confirm whether the caption buttons are still clipped, I'll add the extra inset to the content grid.

This branch has not been deployed

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

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant