From 67cb7f1121138f91da9f53137f8907cd33e00253 Mon Sep 17 00:00:00 2001 From: Dave Pearson Date: Tue, 13 Dec 2022 17:03:28 +0000 Subject: [PATCH] Revert d92c252ea66f15d9359b127bf15ad204d193e228 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. --- src/textual/widget.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/textual/widget.py b/src/textual/widget.py index 818811d07..31344f58c 100644 --- a/src/textual/widget.py +++ b/src/textual/widget.py @@ -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: