Have surrounding rectangle match framed fixed status of what it surrounds

This commit is contained in:
Grant Sanderson 2024-01-19 17:42:29 -06:00
parent d3dee240c3
commit 1c72059725

View file

@ -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