Bug fix for Bubble.pin_to

This commit is contained in:
Grant Sanderson 2019-03-19 22:29:00 -07:00
parent 4bd1e6f3a8
commit 1ca26fcf1d

View file

@ -446,7 +446,10 @@ class Bubble(SVGMobject):
return self.get_center() + factor * self.get_height() * UP
def move_tip_to(self, point):
VGroup(self, self.content).shift(point - self.get_tip())
mover = VGroup(self)
if self.content is not None:
mover.add(self.content)
mover.shift(point - self.get_tip())
return self
def flip(self):