Skip to content

Update the dragbar when the titlebar content size changes#4845

Merged
DHowett-MSFT merged 1 commit intomasterfrom
dev/migrie/b/4288-more-size-changing
Mar 9, 2020
Merged

Update the dragbar when the titlebar content size changes#4845
DHowett-MSFT merged 1 commit intomasterfrom
dev/migrie/b/4288-more-size-changing

Conversation

@zadjii-msft
Copy link
Member

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.

@zadjii-msft zadjii-msft added Area-UserInterface Issues pertaining to the user interface of the Console or Terminal Product-Terminal The new Windows Terminal. labels Mar 9, 2020
@DHowett-MSFT DHowett-MSFT merged commit b465315 into master Mar 9, 2020
@DHowett-MSFT DHowett-MSFT deleted the dev/migrie/b/4288-more-size-changing branch March 9, 2020 17:54
carlos-zamora pushed a commit that referenced this pull request Mar 9, 2020
## 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.
carlos-zamora pushed a commit that referenced this pull request Mar 10, 2020
## 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.
carlos-zamora added a commit that referenced this pull request Mar 10, 2020
carlos-zamora pushed a commit that referenced this pull request Mar 10, 2020
## 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.
carlos-zamora added a commit that referenced this pull request Mar 10, 2020
carlos-zamora added a commit that referenced this pull request Mar 11, 2020
carlos-zamora added a commit that referenced this pull request Mar 12, 2020
carlos-zamora added a commit that referenced this pull request Mar 12, 2020
carlos-zamora added a commit that referenced this pull request Mar 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-UserInterface Issues pertaining to the user interface of the Console or Terminal Product-Terminal The new Windows Terminal.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Maximize and minimize window buttons incorrect rendering

3 participants