Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Custom control is not rendering properly within TitleBar in minimized state(Mac Platform) #27762

Open
saiganesh-sakthivel opened this issue Feb 13, 2025 · 1 comment
Labels
platform/macOS 🍏 macOS / Mac Catalyst s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working

Comments

@saiganesh-sakthivel
Copy link

Description

When custom layout is rendered inside the TitleBar Control, in the Measure method, the width and height requests are returned correctly.
However, in the Arrange method, the height request is incorrect.
Example:
In maximized state: Width = 90, Height = 42.
In minimized state: Width = 90, Height = 10.
We have attached a sample project that replicates the issue for your reference.

Steps to Reproduce

  1. Run the sample in the MacOS.
  2. Arrange and measure final value will get the bound height and bound y value wrongly.

Link to public reproduction project repository

ControlGallery.zip

Version with bug

9.0.40 SR4

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

macOS

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

@saiganesh-sakthivel saiganesh-sakthivel added the t/bug Something isn't working label Feb 13, 2025
@Ying-6 Ying-6 added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed platform/macOS 🍏 macOS / Mac Catalyst labels Feb 13, 2025
@Ying-6
Copy link

Ying-6 commented Feb 13, 2025

This issue has been verified using Visual Studio Code 1.97.0 (9.0.40). Can repro this issue on MacOS platform.
MinimumHeighRequest: 10
Image

MinimumHeighRequest: 40
Image

When debugging to MacOS on 9.0.30, the contents of the TitleBar are not displayed. Maybe the TitleBar not working with 9.0.30
Image

@Ying-6 Ying-6 added i/regression This issue described a confirmed regression on a currently supported version regressed-in-9.0.40 labels Feb 13, 2025
@PureWeen PureWeen removed i/regression This issue described a confirmed regression on a currently supported version regressed-in-9.0.40 labels Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform/macOS 🍏 macOS / Mac Catalyst s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants