mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-23 02:42:11 +03:00
Don't add box scrollbar padding to gadgets.
This commit is contained in:
parent
2bd0d13817
commit
7fa8f30f44
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user