From 12d5e260f0239c0d42b680b4e60ef2b4b2c4a689 Mon Sep 17 00:00:00 2001 From: Alexandre Bury Date: Wed, 25 Jul 2018 20:58:22 -0700 Subject: [PATCH] Fix ScrollView layout size --- src/views/scroll_view.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/scroll_view.rs b/src/views/scroll_view.rs index 920521775..b5865febf 100644 --- a/src/views/scroll_view.rs +++ b/src/views/scroll_view.rs @@ -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);