Currently both bindFillRole(x, item = TRUE) and/or bindFillRole(x, container = TRUE) adds width:100% to x, which means that, if the parent of x has a margin set, x will be larger than it's parent, which is problematic. Fortunately, I don't think we need the width:100% .
For a minimal reprex, notice how the inner-most div spills out into the parent margin.
library(htmltools)
library(bslib)
page_fillable(
div(
as_fill_carrier(),
class = "m-3",
div(
as_fill_item(),
class = "border border-2"
),
)
)
Currently both
bindFillRole(x, item = TRUE)
and/orbindFillRole(x, container = TRUE)
addswidth:100%
tox
, which means that, if the parent ofx
has a margin set,x
will be larger than it's parent, which is problematic. Fortunately, I don't think we need thewidth:100%
.For a minimal reprex, notice how the inner-most div spills out into the parent margin.