fix for auto width

This commit is contained in:
Will McGugan
2022-05-19 11:35:34 +01:00
parent 537df85461
commit 3be7cf74f3
2 changed files with 5 additions and 3 deletions

View File

@@ -85,9 +85,9 @@ Tweet {
padding: 1;
border: wide $panel-darken-2;
overflow-y: auto;
scrollbar-gutter: stable;
/* scrollbar-gutter: stable; */
align-horizontal: center;
box-sizing: content-box;
box-sizing: border-box;
}
.scrollable {

View File

@@ -64,7 +64,9 @@ def get_box_model(
height = container.height - margin.height
elif styles.height.is_auto:
height = get_content_height(
container - gutter.totals if is_border_box else container, viewport, width
container - gutter.totals if is_border_box else container,
viewport,
(width - gutter.width) if is_border_box else width,
)
if is_border_box:
height += gutter.height