From 0d3380fd7b811614173bf654842f2aaf40ba65a3 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Wed, 24 Apr 2024 18:50:57 +0100 Subject: [PATCH] simplify --- src/textual/_layout.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/textual/_layout.py b/src/textual/_layout.py index a0100b4b24..312f8c9fe5 100644 --- a/src/textual/_layout.py +++ b/src/textual/_layout.py @@ -161,7 +161,7 @@ def get_content_width(self, widget: Widget, container: Size, viewport: Size) -> width = 0 else: arrangement = widget._arrange(Size(0, 0)) - return arrangement.spatial_map.total_region.right + return arrangement.total_region.right return width def get_content_height(