summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
Diffstat (limited to 'render')
-rw-r--r--render/layout.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/render/layout.c b/render/layout.c
index 95903a2bb..86d27c54e 100644
--- a/render/layout.c
+++ b/render/layout.c
@@ -1446,8 +1446,10 @@ void layout_float_find_dimensions(int available_width,
if (margin[RIGHT] == AUTO)
margin[RIGHT] = 0;
- padding[RIGHT] += scrollbar_width;
- padding[BOTTOM] += scrollbar_width;
+ if (box->gadget == NULL) {
+ padding[RIGHT] += scrollbar_width;
+ padding[BOTTOM] += scrollbar_width;
+ }
if (box->object && !(box->flags & REPLACE_DIM) &&
content_get_type(box->object) != CONTENT_HTML) {