AvaloniaUtils / DialogHost.Avalonia

AvaloniaUI control that provides a simple way to display a dialog with information or prompt the user when information is needed
MIT License
228 stars 15 forks source link

Popup spawn in the wrong place when he is inside of a Viewbox #2

Closed SergeyV17 closed 2 years ago

SergeyV17 commented 3 years ago

Describe If DialogHost control inside of a ViewBox control and if after running the app resize window along two axes(x,y), then popup will spawn in the wrong place (not in a center of the parent conrol). By default, without resizing popup spawns in center of the parent conrol.

Perhaps this behavior is correct?

Expected behavior After resizing the window, popup will spawns in the center of a parent conrol.

Details ViewboxIssue

If you override the OverlayLayer control (add HorizontalAlignment=Center, VerticalAlignment=Center, as showed below, then problem is solved: image

Repro https://github.com/SergeyV17/DialogHostViewBoxIssueRepro

SKProCH commented 2 years ago

Sorry for the long answer.

I will try to take the time and fix it soon.

SKProCH commented 2 years ago

Fixed in v0.2.2