Skip to content

Commit bfdabca

Browse files
committed
pushed a slight change to the knitr hook so that iframes dont have borders
1 parent 62576d6 commit bfdabca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/plotly.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ plotly <- function(username=NULL, key=NULL){
9494
w <- if(is.null(options[["width"]])) "600" else options[["width"]]
9595
h <- if(is.null(options[["height"]])) "600" else options[["height"]]
9696
paste("<iframe height=\"", h, "\" id=\"igraph\" scrolling=\"no\" seamless=\"seamless\"\n\t\t\t\tsrc=\"",
97-
options[["url"]], "\" width=\"", w, "\"></iframe>", sep = "")
97+
options[["url"]], "\" width=\"", w, "\" frameBorder=\"0\"></iframe>", sep = "")
9898
}
9999
}
100100
pub$plotly <- function(..., kwargs = list(filename = NULL, fileopt = NULL)) {

0 commit comments

Comments
 (0)