mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Have surrounding rectangle match framed fixed status of what it surrounds
This commit is contained in:
parent
d3dee240c3
commit
1c72059725
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue