diff --git a/src/iOS/toga_iOS/widgets/scrollcontainer.py b/src/iOS/toga_iOS/widgets/scrollcontainer.py index 1c0f03022b..6ffa57759e 100644 --- a/src/iOS/toga_iOS/widgets/scrollcontainer.py +++ b/src/iOS/toga_iOS/widgets/scrollcontainer.py @@ -130,7 +130,8 @@ def set_horizontal(self, value): self.update_content_size() def rehint(self): - self.update_content_size() + if self.interface.content: + self.update_content_size() def set_on_scroll(self, on_scroll): self.interface.factory.not_implemented("ScrollContainer.set_on_scroll()")