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

fix Combobox z-index stack order issue #1189

Merged
merged 3 commits into from
Dec 23, 2023

Conversation

dromerolovo
Copy link
Contributor

This change resolves #1188

}

<style>
@($"#{Id}::part(listbox) {{ max-height: {(string.IsNullOrEmpty(Height) ? null : Height)}; z-index: {ZIndex.ComboboxPopup} }}")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you modify the generation of this "string", because when "height" is not defined, the style still contains a "height" attribute.

Example

<style>#combobox::part(listbox) { max-height: ; z-index: 9995 }</style>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure. I'll amend the changes

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Before:
Screenshot 2023-12-22 093152

After:
Screenshot 2023-12-22 093405

Copy link
Collaborator

@dvoituron dvoituron Dec 22, 2023

Choose a reason for hiding this comment

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

I'm going to be annoying but it's my job 😎. Can you add a space after the max-height? To be consistent with the rest of the generated code.

And it's probably clearer to do $"max-height: {Height};".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No prob at all

@vnbaaij
Copy link
Collaborator

vnbaaij commented Dec 22, 2023

@dvoituron I knew you were going to say that! 😂
I was like "we'll do that after merging"

@vnbaaij vnbaaij merged commit ee5c9c4 into microsoft:dev Dec 23, 2023
2 checks passed
vnbaaij added a commit that referenced this pull request Dec 28, 2023
* fix Combobox z-index stack order issue

* fix Combobox z-index stack order issue

---------

Co-authored-by: Vincent Baaij <[email protected]>
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.

fix: Combobox wrong z-index stack order
3 participants