Skip to content

Commit 2fc524a

Browse files
committed
auto expand
1 parent a4265f6 commit 2fc524a

File tree

2 files changed

+100
-100
lines changed

2 files changed

+100
-100
lines changed

src/textual/widget.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1236,9 +1236,9 @@ def _get_box_model(
12361236
content_width = Fraction(
12371237
self.get_content_width(content_container - margin.totals, viewport)
12381238
)
1239-
if styles.overflow_x == "auto" and (
1240-
styles.scrollbar_gutter == "stable" or self.show_vertical_scrollbar
1241-
):
1239+
if (
1240+
styles.overflow_x == "auto" and styles.scrollbar_gutter == "stable"
1241+
) or self.show_vertical_scrollbar:
12421242
content_width += styles.scrollbar_size_vertical
12431243
if (
12441244
content_width < content_container.width
@@ -1288,9 +1288,9 @@ def _get_box_model(
12881288
content_height = Fraction(
12891289
self.get_content_height(content_container, viewport, int(content_width))
12901290
)
1291-
if styles.overflow_y == "auto" and (
1292-
styles.scrollbar_gutter == "stable" or self.show_horizontal_scrollbar
1293-
):
1291+
if (
1292+
styles.overflow_y == "auto" and styles.scrollbar_gutter == "stable"
1293+
) or self.show_horizontal_scrollbar:
12941294
content_height += styles.scrollbar_size_horizontal
12951295
if (
12961296
content_height < content_container.height

0 commit comments

Comments
 (0)