Skip to content

Conversation

@apachezy
Copy link
Contributor

Pull request type

Please check the type of change your PR introduces:

  • Update
  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes

What is the current behavior?

Currently, when ContentDialog contains text that exceeds the width and wraps to multiple lines, a container sizing calculation error occurs (it fails to measure the actual space the text should occupy), causing inexplicable extra blank space below wrapped text (as described in #1273).

ContentDialog-Text-Issue1 ContentDialog-Text-Issue2

The root cause is that the level 0 child element of ContentDialog does not have vertical alignment parameters set, defaulting to the Stretch vertical alignment mode.

Issue Number: #1273

What is the new behavior?

  • After modification, ContentDialog text content now renders correctly:
ContentDialog-Text-Fixed1 ContentDialog-Text-Fixed2

Other information

@github-actions github-actions bot added controls Changes to the appearance or logic of custom controls. styles Topic is related to styles PR Pull request release labels Dec 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

controls Changes to the appearance or logic of custom controls. PR Pull request release styles Topic is related to styles

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Longer text as Content in ContentDialog creates big blank space

3 participants