Skip to content

Commit ddda1c2

Browse files
authored
fix for text alignment issue (#3033)
* fix for text alignment issue * test for hot reloading * unable to test * restore dot
1 parent dbd3644 commit ddda1c2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/textual/widget.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2761,8 +2761,9 @@ def post_render(self, renderable: RenderableType) -> ConsoleRenderable:
27612761
if (
27622762
isinstance(renderable, Text)
27632763
and text_justify is not None
2764-
and renderable.justify is None
2764+
and renderable.justify != text_justify
27652765
):
2766+
renderable = renderable.copy()
27662767
renderable.justify = text_justify
27672768

27682769
renderable = _Styled(

0 commit comments

Comments
 (0)