Skip to content

Commit f2c06f3

Browse files
committed
simplify
1 parent 4e50390 commit f2c06f3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/textual/widget.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2193,7 +2193,7 @@ def _resolve_extrema(
21932193
width_fraction: Fraction,
21942194
height_fraction: Fraction,
21952195
) -> Extrema:
2196-
"""Resolve minimum and maximum values.
2196+
"""Resolve minimum and maximum values for width and height.
21972197
21982198
Args:
21992199
container: Size of outer widget.
@@ -2211,8 +2211,7 @@ def _resolve_extrema(
22112211
max_height: Fraction | None = None
22122212

22132213
styles = self.styles
2214-
margin = styles.margin
2215-
container -= margin.totals
2214+
container -= styles.margin.totals
22162215
if styles.box_sizing == "border-box":
22172216
gutter_width, gutter_height = styles.gutter.totals
22182217
else:

0 commit comments

Comments
 (0)