Skip to content

Commit

Permalink
Border inside a frame fix (#18526)
Browse files Browse the repository at this point in the history
  • Loading branch information
kubaflo committed Mar 4, 2024
1 parent 1d1a51f commit 97ec623
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Controls/src/Core/Border/Border.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ void NotifyStrokeShapeChanges()

if (strokeShape is VisualElement visualElement)
{
// By setting visibility to false, the shape is not
// considered when calculating the size of its container, but can
// still be accessed as a children. In the context of
// border the IsVisible property of shape is not used.
visualElement.IsVisible = false;

AddLogicalChild(visualElement);
_strokeShapeChanged ??= (sender, e) => OnPropertyChanged(nameof(StrokeShape));
_strokeShapeProxy ??= new();
Expand Down

0 comments on commit 97ec623

Please sign in to comment.