lazyrmd
lazyrmd copied to clipboard
Iframe sizing issues
I am having a lot of trouble with the sizing of the iframe for this package
I forked rpivotTable package to https://github.com/pkopps/rpivot and changed the sizing policy from
# htmlwidgets::createWidget(
# name = 'rpivot',
# x,
# width = width,
# height = height,
# package = 'rpivot'
# )
to
htmlwidgets::createWidget(
name = 'rpivot',
x,
width = width,
height = height,
sizingPolicy = htmlwidgets::sizingPolicy(
knitr.figure = FALSE,
knitr.defaultHeight = '100%',
knitr.defaultWidth = '100%'
),
package = 'rpivot'
)
because I have 250+ of these in a .Rmd file and they all overlapped one another (I don't know if this was the best way)
I also have very little js and css understanding/experience
Anyways, is this normal/expected behavior for the lazyrmd package. Could sizing arguments be added to the lazyrmd::lazy_render() function potentially?
I experimented with the rpivot packages sizing policy, I played with the chuck options "out.width" and "out.height" with no luck
Thank you kindly Patrick