Skip to content

Commit

Permalink
Merge pull request #1557 from freakboy3742/scrollcontainer_size
Browse files Browse the repository at this point in the history
Refs #1473 - Check for content before updating content size.
  • Loading branch information
freakboy3742 authored Aug 15, 2022
2 parents e354340 + 12e5c14 commit c9fabfb
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 c9fabfb

Please sign in to comment.