We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e50390 commit f2c06f3Copy full SHA for f2c06f3
src/textual/widget.py
@@ -2193,7 +2193,7 @@ def _resolve_extrema(
2193
width_fraction: Fraction,
2194
height_fraction: Fraction,
2195
) -> Extrema:
2196
- """Resolve minimum and maximum values.
+ """Resolve minimum and maximum values for width and height.
2197
2198
Args:
2199
container: Size of outer widget.
@@ -2211,8 +2211,7 @@ def _resolve_extrema(
2211
max_height: Fraction | None = None
2212
2213
styles = self.styles
2214
- margin = styles.margin
2215
- container -= margin.totals
+ container -= styles.margin.totals
2216
if styles.box_sizing == "border-box":
2217
gutter_width, gutter_height = styles.gutter.totals
2218
else:
0 commit comments