diff --git a/NEWS.md b/NEWS.md index 4c792ff3..51a032d0 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,7 @@ # teal.widgets 0.1.1.9002 +* Added the `dim` slot to the list returned by the `plot_with_settings` module. + ### New features * Added a new module - `verbatim_popup`. diff --git a/R/plot_with_settings.R b/R/plot_with_settings.R index b2072e81..2e7013a1 100644 --- a/R/plot_with_settings.R +++ b/R/plot_with_settings.R @@ -451,7 +451,8 @@ plot_with_settings_srv <- function(id, input$height input$width input$plot_hover - }) + }), + dim = reactive(c(input$width, input$height)) ) ) })