mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
fix for auto width
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user