From 878c003dd51ca3929a7c6bf73293c4f6764a51bf Mon Sep 17 00:00:00 2001 From: statisticiansix Date: Tue, 15 Jan 2019 14:41:40 +0000 Subject: [PATCH] Remove margin from knitr output --- inst/htmlwidgets/trelliscopejs_widget.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inst/htmlwidgets/trelliscopejs_widget.js b/inst/htmlwidgets/trelliscopejs_widget.js index 7efa368..80c7ad6 100644 --- a/inst/htmlwidgets/trelliscopejs_widget.js +++ b/inst/htmlwidgets/trelliscopejs_widget.js @@ -26,8 +26,8 @@ HTMLWidgets.widget({ el.appendChild(dv); if (x.in_knitr) { - el.style.marginTop = '30px'; - el.style.marginBottom = '30px'; + el.style.marginTop = '0px'; + el.style.marginBottom = '0px'; } var scrpt = document.createElement('script');