Skip to content

InlineUIContainer dosen't correctly render with TextProperty=Wrap #17183

Closed
@Danich27rus

Description

@Danich27rus

Describe the bug

Right now if Inlines have InlineUIContainer inside and we have TextProperty=Wrap on TextBlock, everything is fine until InlineUIContainer renders.
image
image

After that, if i back to smaller width, InlineUiContainer will be rendered incorrectly, on top of my text.
image

I don't know what to do right now. I thought about using WrapPanel, but that means i need to rewrote whole system in my App.

To Reproduce

  1. Create inline.
  2. Add runs and InlineUIContainer.
  3. Set inlines on some TextBlock with changable width.
  4. Try to change size on TextBlock
  5. InlineUIContainer will show and never hide.

Expected behavior

  1. Create inline.
  2. Add runs and InlineUIContainer.
  3. Set inlines on some TextBlock with changable width.
  4. Try to change size on TextBlock
  5. InlineUIContainer will proper show and hide as width changes.

Avalonia version

11.1.3

OS

Windows

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions