From 1c72059725d244ecae0846dec7b8bb7f84b9af9e Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Fri, 19 Jan 2024 17:42:29 -0600 Subject: [PATCH] Have surrounding rectangle match framed fixed status of what it surrounds --- manimlib/mobject/shape_matchers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/manimlib/mobject/shape_matchers.py b/manimlib/mobject/shape_matchers.py index 69bd4543..d42bde90 100644 --- a/manimlib/mobject/shape_matchers.py +++ b/manimlib/mobject/shape_matchers.py @@ -30,6 +30,8 @@ class SurroundingRectangle(Rectangle): super().__init__(color=color, **kwargs) self.buff = buff self.surround(mobject) + if mobject.is_fixed_in_frame(): + self.fix_in_frame() def surround(self, mobject, buff=None) -> Self: self.mobject = mobject