summaryrefslogtreecommitdiff
path: root/render/layout.c
diff options
context:
space:
mode:
Diffstat (limited to 'render/layout.c')
-rw-r--r--render/layout.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/render/layout.c b/render/layout.c
index ea80de6c3..d9dad2a99 100644
--- a/render/layout.c
+++ b/render/layout.c
@@ -1244,6 +1244,13 @@ bool layout_table(struct box *table, int available_width,
layout_find_dimensions(available_width,
c->style, 0,
c->padding, c->border);
+ if (c->style->overflow ==
+ CSS_OVERFLOW_SCROLL ||
+ c->style->overflow ==
+ CSS_OVERFLOW_AUTO) {
+ c->padding[RIGHT] += SCROLLBAR_WIDTH;
+ c->padding[BOTTOM] += SCROLLBAR_WIDTH;
+ }
}
}
}