Skip to content

Commit 4aa3ff6

Browse files
committed
Merge pull request #366 from ropensci/fix/print
Obtain width/height from built plot. Fixes #365
2 parents b6506ac + 87d834b commit 4aa3ff6

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: plotly
22
Title: Create Interactive Web Graphics via Plotly's JavaScript Graphing Library
3-
Version: 2.0.17
3+
Version: 2.0.18
44
Authors@R: c(person("Carson", "Sievert", role = c("aut", "cre"),
55
email = "[email protected]"),
66
person("Chris", "Parmer", role = c("aut", "cph"),

NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2.0.18 -- 22 Dec 2015
2+
3+
Fix #365
4+
15
2.0.17 -- 22 Dec 2015
26

37
Fix #358

R/print.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ toWidget <- function(x) {
3939
htmlwidgets::createWidget(
4040
name = "plotly",
4141
x = p,
42-
width = x$width,
43-
height = x$height,
42+
width = p$width,
43+
height = p$height,
4444
htmlwidgets::sizingPolicy(
4545
padding = 5,
4646
browser.fill = TRUE

0 commit comments

Comments
 (0)