|
|
|
@ -13,6 +13,7 @@ using Avalonia.Media; |
|
|
|
using Avalonia.Platform; |
|
|
|
using Avalonia.Rendering; |
|
|
|
using Avalonia.Styling; |
|
|
|
using Avalonia.Threading; |
|
|
|
using Avalonia.Utilities; |
|
|
|
using Avalonia.VisualTree; |
|
|
|
|
|
|
|
@ -412,7 +413,11 @@ namespace Avalonia.Controls |
|
|
|
FrameSize = PlatformImpl!.FrameSize; |
|
|
|
Width = clientSize.Width; |
|
|
|
Height = clientSize.Height; |
|
|
|
LayoutManager.ExecuteLayoutPass(); |
|
|
|
|
|
|
|
// Setting ClientSize and Width / Height above caused ExecuteLayoutPass to be queued.
|
|
|
|
// Instead of explicitly calling LayoutManager.ExecuteLayoutPass here, we clear the job queue.
|
|
|
|
Dispatcher.UIThread.RunJobs(DispatcherPriority.Layout); |
|
|
|
|
|
|
|
Renderer?.Resized(clientSize); |
|
|
|
} |
|
|
|
|
|
|
|
|