For now anyway. I suspect this definition if is_scrollable will become moot
soon (ideally there would never be an is_scrollable property at all, ever,
as inheritance should ideally dictate this if the changes that are planned
go the way as planned -- a property that tells you something about
provenance when the inheritance tree tells you that is some bad OO smell)
but I want to get the tests set up as their own PR first and *then* work on
the fix.
This commit is contained in:
Dave Pearson
2022-12-13 17:03:28 +00:00
parent 3f225469a5
commit 67cb7f1121

View File

@@ -1227,7 +1227,7 @@ class Widget(DOMNode):
Returns:
bool: True if this widget may be scrolled.
"""
return self.is_container
return self.styles.layout is not None or bool(self.children)
@property
def layer(self) -> str: