mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
styles renderer update
This commit is contained in:
@@ -139,6 +139,10 @@ class Size(NamedTuple):
|
||||
width, height = self
|
||||
return Region(0, 0, width, height)
|
||||
|
||||
@property
|
||||
def lines(self) -> list[int]:
|
||||
return list(range(self.height))
|
||||
|
||||
def __add__(self, other: object) -> Size:
|
||||
if isinstance(other, tuple):
|
||||
width, height = self
|
||||
|
||||
Reference in New Issue
Block a user