mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +00:00
Fix ScrollView layout size
This commit is contained in:
parent
28bb7af6af
commit
12d5e260f0
@ -637,7 +637,8 @@ where
|
|||||||
// This is what we'd like
|
// This is what we'd like
|
||||||
let (inner_size, self_size) = self.sizes(size, true);
|
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.size_cache = Some(SizeCache::build(self_size, size));
|
||||||
|
|
||||||
self.inner.layout(self.inner_size);
|
self.inner.layout(self.inner_size);
|
||||||
|
Loading…
Reference in New Issue
Block a user