Skip to content

fix: Avoid reading header height before layout - #2075

Open
BaptGrv wants to merge 1 commit into
masterfrom
fix/sidebar-header
Open

BaptGrv wants to merge 1 commit into
masterfrom
fix/sidebar-header

Conversation

@BaptGrv

@BaptGrv BaptGrv commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI balanced review requested due to automatic review settings November 6, 2026 15:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Removing the header-height measurements leaves headerViewHeight at zero in Home and Sidebar, delaying the navigation-title fade by the header height.

1 open issue
What changed in this PR

This PR removes early header-height reads from the Home and Sidebar screens to avoid measuring supplementary views before layout.

Changes:

  • Removes headerViewHeight assignments during header creation in both controllers.
File Description
kDrive/​UI/​Controller/​Home/​HomeViewController.swift Removes the Home header’s pre-layout height read.
kDrive/​UI/​Controller/​Files/​SidebarViewController.swift Removes the Sidebar header’s pre-layout height read.

Review effort: Balanced

@BaptGrv
BaptGrv force-pushed the fix/sidebar-header branch from 2cddcc3 to 3657036 Compare November 9, 2026 08:13
@sonarqubecloud

sonarqubecloud Bot commented Nov 9, 2026

Copy link
Copy Markdown

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