Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Whoops! Previous fix had its own bug. Now it's fixed.

Grant Sanderson16e8a76c6a76
diff --git a/manimlib/mobject/frame.py b/manimlib/mobject/frame.py
index 5b51fce37..9b4019f68 100644
--- a/manimlib/mobject/frame.py
+++ b/manimlib/mobject/frame.py
@@ -10,10 +10,10 @@ class ScreenRectangle(Rectangle):
}
def __init__(self, **kwargs):
- digest_config(self, kwargs)
- self.width = self.width_to_height_ratio * self.height
- Rectangle.__init__(
- self, height=self.height, width=self.width, **kwargs
+ Rectangle.__init__(self, **kwargs)
+ self.set_width(
+ self.width_to_height_ratio * self.get_height(),
+ stretch=True
)