mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Merge pull request #1181 from davep/bug/1175/missing-borders
Don't take transparent to imply not visible
This commit is contained in:
@@ -34,6 +34,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
- Fixed DataTable row not updating after add https://github.com/Textualize/textual/issues/1026
|
||||
- Fixed issues with animation. Now objects of different types may be animated.
|
||||
- Fixed containers with transparent background not showing borders https://github.com/Textualize/textual/issues/1175
|
||||
|
||||
## [0.4.0] - 2022-11-08
|
||||
|
||||
|
||||
@@ -633,11 +633,7 @@ class Compositor:
|
||||
def is_visible(widget: Widget) -> bool:
|
||||
"""Return True if the widget is (literally) visible by examining various
|
||||
properties which affect whether it can be seen or not."""
|
||||
return (
|
||||
widget.visible
|
||||
and not widget.is_transparent
|
||||
and widget.styles.opacity > 0
|
||||
)
|
||||
return widget.visible and widget.styles.opacity > 0
|
||||
|
||||
_Region = Region
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user