mirror of
https://gitee.com/chinware/atomui.git
synced 2024-11-29 18:38:16 +08:00
Fixed PopupShadowLayer performance issue
This commit is contained in:
parent
369501d400
commit
a4e7064a72
@ -188,8 +188,8 @@ internal class PopupShadowLayer : LiteWindow, IShadowDecorator
|
||||
{
|
||||
if (_target is not null)
|
||||
{
|
||||
_target.Opened -= HandleTargetOpened;
|
||||
_target.Closed -= HandleTargetClosed;
|
||||
_target.Opened -= HandleTargetOpened;
|
||||
_target.Closed -= HandleTargetClosed;
|
||||
if (_target.Child is not null)
|
||||
{
|
||||
_target.Child.SizeChanged -= HandleChildSizeChange;
|
||||
@ -248,8 +248,7 @@ internal class PopupShadowLayer : LiteWindow, IShadowDecorator
|
||||
|
||||
private void HandleChildSizeChange(object? sender, SizeChangedEventArgs args)
|
||||
{
|
||||
SetupShadowRenderer();
|
||||
InvalidateMeasure();
|
||||
SetupPositionAndSize();
|
||||
}
|
||||
|
||||
private Size CalculateShadowRendererSize(Size content)
|
||||
|
Loading…
Reference in New Issue
Block a user