Small changes to _get_renders

This commit is contained in:
Darren Burns
2022-09-15 13:31:20 +01:00
parent 0762fff6bf
commit 3dd83d3df2

View File

@@ -607,12 +607,7 @@ class Compositor:
def is_visible(widget: Widget) -> bool: def is_visible(widget: Widget) -> bool:
"""Return True if the widget is (literally) visible by examining various """Return True if the widget is (literally) visible by examining various
properties which affect whether it can be seen or not.""" properties which affect whether it can be seen or not."""
return ( return widget.styles.visibility != "hidden" and widget.styles.opacity > 0
widget.styles.visibility != "hidden"
and not widget.is_scrollable
and widget.styles.background.is_transparent
and widget.styles.opacity > 0
)
if self.map: if self.map:
if crop: if crop: