mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Small changes to _get_renders
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user