mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
docstring
This commit is contained in:
@@ -263,10 +263,7 @@ class Border:
|
||||
else:
|
||||
render_options = options.update_width(width)
|
||||
|
||||
print("LINES", self.renderable)
|
||||
print(render_options)
|
||||
lines = console.render_lines(self.renderable, render_options)
|
||||
|
||||
if self.outline:
|
||||
self._crop_renderable(lines, options.max_width)
|
||||
|
||||
|
||||
@@ -19,6 +19,15 @@ class Align:
|
||||
horizontal: AlignHorizontal,
|
||||
vertical: AlignVertical,
|
||||
) -> None:
|
||||
"""Align a child renderable
|
||||
|
||||
Args:
|
||||
renderable (RenderableType): Renderable to align.
|
||||
size (Size): Size of container.
|
||||
style (Style): Style of any padding.
|
||||
horizontal (AlignHorizontal): Horizontal alignment.
|
||||
vertical (AlignVertical): Vertical alignment.
|
||||
"""
|
||||
self.renderable = renderable
|
||||
self.size = size
|
||||
self.style = style
|
||||
|
||||
Reference in New Issue
Block a user