Don't add box scrollbar padding to gadgets.

This commit is contained in:
Michael Drake 2013-02-09 13:01:56 +00:00
parent 2bd0d13817
commit 7fa8f30f44

View File

@ -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) {