Fix renderPlot's execOnResize logic

This was found in #1331, but the real problem with that issue is that
the mclust::mclust2Dplot function has changed since we wrote the example
app.
This commit is contained in:
Winston Chang
2016-08-30 16:37:50 -05:00
parent a8e09d7fe6
commit c4cc5b6dfc

View File

@@ -165,9 +165,9 @@ renderPlot <- function(expr, width='auto', height='auto', res=72, ...,
plotObj <- reactive(label = "plotObj", {
if (execOnResize) {
isolate({ dims <- getDims() })
} else {
dims <- getDims()
} else {
isolate({ dims <- getDims() })
}
if (is.null(dims$width) || is.null(dims$height) ||