[PR #4845] [MERGED] Update the dragbar when the titlebar content size changes #25972

Open
opened 2026-01-31 09:13:01 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/4845
Author: @zadjii-msft
Created: 3/9/2020
Status: Merged
Merged: 3/9/2020
Merged by: @DHowett-MSFT

Base: masterHead: dev/migrie/b/4288-more-size-changing


📝 Commits (1)

📊 Changes

1 file changed (+10 additions, -0 deletions)

View changed files

📝 src/cascadia/WindowsTerminal/NonClientIslandWindow.cpp (+10 -0)

📄 Description

Summary of the Pull Request

Add a SizeChanged handler to the titlebar content UI element. It's possible that this element's size will change after the dragbar's. When that happens, the drag bar won't send another SizeChanged event, because the dragbar's size didn't change, only it's position.

References

We originally duped this issue to #4166, but after #4829 fixed that issue, this one persisted. They're all related, and look like dupes, but they weren't.

PR Checklist

Detailed Description of the Pull Request / Additional comments

Validation Steps Performed

I had a solid 100% repro that doesn't repro anymore.

I've maximized, restored, resized, and generally played with the window a bunch.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/4845 **Author:** [@zadjii-msft](https://github.com/zadjii-msft) **Created:** 3/9/2020 **Status:** ✅ Merged **Merged:** 3/9/2020 **Merged by:** [@DHowett-MSFT](https://github.com/DHowett-MSFT) **Base:** `master` ← **Head:** `dev/migrie/b/4288-more-size-changing` --- ### 📝 Commits (1) - [`2caa950`](https://github.com/microsoft/terminal/commit/2caa95080bb37e3808ef4cd4d68feba47c35beb9) This was also easy ### 📊 Changes **1 file changed** (+10 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/WindowsTerminal/NonClientIslandWindow.cpp` (+10 -0) </details> ### 📄 Description ## Summary of the Pull Request Add a `SizeChanged` handler to the titlebar content UI element. It's possible that this element's size will change after the dragbar's. When that happens, the drag bar won't send another `SizeChanged` event, because the dragbar's _size_ didn't change, only it's position. ## References We originally duped this issue to #4166, but after #4829 fixed that issue, this one persisted. They're all related, and _look_ like dupes, but they weren't. ## PR Checklist * [x] Closes #4288 * [x] I work here * [ ] Tests added/passed * [n/a] Requires documentation to be updated ## Detailed Description of the Pull Request / Additional comments ## Validation Steps Performed I had a solid 100% repro that doesn't repro anymore. I've maximized, restored, resized, and generally played with the window a bunch. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:13:01 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#25972