Skip to content

Commit

Permalink
Fix ScrollView layout size
Browse files Browse the repository at this point in the history
  • Loading branch information
gyscos committed Jul 26, 2018
1 parent 28bb7af commit 12d5e26
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/views/scroll_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,8 @@ where
// This is what we'd like
let (inner_size, self_size) = self.sizes(size, true);

self.inner_size = self.enabled.select_or(inner_size, size);
self.inner_size = inner_size;

self.size_cache = Some(SizeCache::build(self_size, size));

self.inner.layout(self.inner_size);
Expand Down

0 comments on commit 12d5e26

Please sign in to comment.