|
|
@@ -141,7 +141,6 @@ namespace Avalonia.Layout
|
|
|
static Layoutable()
|
|
|
{
|
|
|
AffectsMeasure<Layoutable>(
|
|
|
- IsVisibleProperty,
|
|
|
WidthProperty,
|
|
|
HeightProperty,
|
|
|
MinWidthProperty,
|
|
|
@@ -781,6 +780,17 @@ namespace Avalonia.Layout
|
|
|
{
|
|
|
}
|
|
|
|
|
|
+ protected override void OnPropertyChanged<T>(AvaloniaPropertyChangedEventArgs<T> change)
|
|
|
+ {
|
|
|
+ base.OnPropertyChanged(change);
|
|
|
+
|
|
|
+ if (change.Property == IsVisibleProperty)
|
|
|
+ {
|
|
|
+ DesiredSize = default;
|
|
|
+ this.GetVisualParent<ILayoutable>()?.ChildDesiredSizeChanged(this);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
/// <inheritdoc/>
|
|
|
protected sealed override void OnVisualParentChanged(IVisual? oldParent, IVisual? newParent)
|
|
|
{
|