Skip to content

Commit 059786f

Browse files
committed
Revert "plotlyOutput()'s width and height now default to NULL (and default CSS sizing is provided using a non-inline style) (#2192)"
This reverts commit 2062096.
1 parent c95a20f commit 059786f

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

R/shiny.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#' @name plotly-shiny
2424
#'
2525
#' @export
26-
plotlyOutput <- function(outputId, width = NULL, height = NULL,
26+
plotlyOutput <- function(outputId, width = "100%", height = "400px",
2727
inline = FALSE, reportTheme = TRUE) {
2828
args <- list(
2929
outputId = outputId,

inst/htmlwidgets/lib/plotlyjs/plotly-htmlwidgets.css

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
.plotly.html-widget {
2-
width: 100%;
3-
height: 400px;
4-
}
5-
61
/*
72
just here so that plotly works
83
correctly with ioslides.

0 commit comments

Comments
 (0)