Skip to content

Commit

Permalink
Check for content before updating content size.
Browse files Browse the repository at this point in the history
  • Loading branch information
freakboy3742 committed Aug 15, 2022
1 parent e354340 commit 12e5c14
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/iOS/toga_iOS/widgets/scrollcontainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()")
Expand Down

0 comments on commit 12e5c14

Please sign in to comment.