def container_resized(self, event): self.extent = (self.width, self.height) ScrollableView.container_resized(self, event)