Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Apr 24, 2024
1 parent 5a245b2 commit 0d3380f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/textual/_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 0d3380f

Please sign in to comment.