Skip to content

Commit 395e83a

Browse files
committed
Better defaults for defaultWidth/defaultHeight in the htmlwidget's sizing policy
1 parent 15dfaef commit 395e83a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

R/print.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ as.widget <- function(x, ...) {
6464
height = x$height,
6565
sizingPolicy = htmlwidgets::sizingPolicy(
6666
padding = 5,
67-
browser.fill = TRUE
67+
browser.fill = TRUE,
68+
defaultWidth = '100%',
69+
defaultHeight = 400
6870
),
6971
...
7072
)

0 commit comments

Comments
 (0)