René's URL Explorer Experiment


Title: Resize behaviour in combination with renderUI() · Issue #1553 · plotly/plotly.R · GitHub

Open Graph Title: Resize behaviour in combination with renderUI() · Issue #1553 · plotly/plotly.R

X Title: Resize behaviour in combination with renderUI() · Issue #1553 · plotly/plotly.R

Description: When implementing plotlyOutput inside a renderUI enviroment the plots are not resizing properly when changing the size of the container indirectly via an input. The first change works, but if I change back the outer container of the seco...

Open Graph Description: When implementing plotlyOutput inside a renderUI enviroment the plots are not resizing properly when changing the size of the container indirectly via an input. The first change works, but if I cha...

X Description: When implementing plotlyOutput inside a renderUI enviroment the plots are not resizing properly when changing the size of the container indirectly via an input. The first change works, but if I cha...

Opengraph URL: https://github.com/plotly/plotly.R/issues/1553

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Resize behaviour in combination with renderUI()","articleBody":"When implementing `plotlyOutput` inside a `renderUI` enviroment the plots are not resizing properly when changing the size of the container indirectly via an input. The first change works, but if I change back the outer container of the second plot has the right size, but the following `plot-container` and `svg-container` haven't and so the resulting plot.\r\nI'm using the current `shiny` (1.3.2) and `plotly` (4.9.0) version.\r\n\r\nSee this example:\r\n```\r\nlibrary(shiny)\r\nlibrary(plotly)\r\n\r\nui \u003c- fluidPage(\r\n  uiOutput(\"plotly_outputs\"),\r\n  radioButtons(\"switch\", \"switch\", choices = c(\"horiz\", \"vert\"), selected = \"horiz\")\r\n)\r\n\r\nserver \u003c- function(input, output) {\r\n  \r\n  output$plotly_outputs \u003c- renderUI({\r\n    \r\n    if (input$switch == \"horiz\"){\r\n      ret \u003c- tagList(\r\n        fluidRow(\r\n          column(width = 6, style = \"height:450px\",\r\n                 plotlyOutput('plotly_blocks', width = '100%', height = '100%')),\r\n          column(width = 6, style = \"height:450px\",\r\n                 plotlyOutput('plotly_blocks2', width = '100%', height = '100%'))\r\n        )\r\n      )\r\n    } else {\r\n      tagList(\r\n        fluidRow(\r\n          column(width = 12, style = \"height:225px\",\r\n                 plotlyOutput('plotly_blocks', width = '100%', height = '100%'))),\r\n        fluidRow(\r\n          column(width = 12, style = \"height:225px\",\r\n                 plotlyOutput('plotly_blocks2', width = '100%', height = '100%')))\r\n      )\r\n    }\r\n  })\r\n  \r\n  output$plotly_blocks \u003c- renderPlotly({\r\n    input$switch\r\n    calc_plot()\r\n  })\r\n  \r\n  output$plotly_blocks2 \u003c- renderPlotly({\r\n    input$switch\r\n    calc_plot()\r\n  })\r\n  \r\n  calc_plot \u003c- reactive({\r\n    input$switch\r\n    \r\n    plot_ly(economics, x = ~date, color = I(\"black\")) %>%\r\n      add_lines(y = ~uempmed) %>%\r\n      add_lines(y = ~psavert, color = I(\"red\"))\r\n  })\r\n\r\n}\r\n\r\nshinyApp(ui, server)\r\n```\r\n","author":{"url":"https://github.com/Fideldue","@type":"Person","name":"Fideldue"},"datePublished":"2019-06-18T16:51:33Z","url":"https://github.com/plotly/plotly.R/issues/1553"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:8c7cbe5b-3157-6b1a-2454-186f47194249
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id886C:2463BD:F61632:13CAC75:6B00FF09
html-safe-nonce9a50984d63d148bf709bf00359662bc97576d77dd329d48c04288e0e7b582e7f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODZDOjI0NjNCRDpGNjE2MzI6MTNDQUM3NTo2QjAwRkYwOSIsInZpc2l0b3JfaWQiOiIzNzM3OTI1NzI5MDE5NTU5Njg5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacd11f47fa95e40d0237c5d7975d568230dd16d72fd02fa3acda8e1896b997daf6
hovercard-subject-tagissue:457590661
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/plotly/plotly.R/1553/issue_layout
twitter:imagehttps://opengraph.githubassets.com/1102cac1b6062a0786bbbc6e3dc4555b867923d46ae12d0445ead7906ea9c70a/plotly/plotly.R/issues/1553
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1102cac1b6062a0786bbbc6e3dc4555b867923d46ae12d0445ead7906ea9c70a/plotly/plotly.R/issues/1553
og:image:altWhen implementing plotlyOutput inside a renderUI enviroment the plots are not resizing properly when changing the size of the container indirectly via an input. The first change works, but if I cha...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameFideldue
hostnamegithub.com
expected-hostnamegithub.com
Nonecb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124
turbo-cache-controlno-preview
go-importgithub.com/plotly/plotly.R git https://github.com/plotly/plotly.R.git
octolytics-dimension-user_id5997976
octolytics-dimension-user_loginplotly
octolytics-dimension-repository_id14579179
octolytics-dimension-repository_nwoplotly/plotly.R
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id14579179
octolytics-dimension-repository_network_root_nwoplotly/plotly.R
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/plotly/plotly.R/issues/1553#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fplotly%2Fplotly.R%2Fissues%2F1553
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fplotly%2Fplotly.R%2Fissues%2F1553
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=plotly%2Fplotly.R
Reloadhttps://github.com/plotly/plotly.R/issues/1553
Reloadhttps://github.com/plotly/plotly.R/issues/1553
Reloadhttps://github.com/plotly/plotly.R/issues/1553
plotlyhttps://github.com/plotly
plotly.Rhttps://github.com/plotly/plotly.R
Codehttps://github.com/plotly/plotly.R
Issues716 (716)https://github.com/plotly/plotly.R/issues
Pull requests47 (47)https://github.com/plotly/plotly.R/pulls
Discussionshttps://github.com/plotly/plotly.R/discussions
Actionshttps://github.com/plotly/plotly.R/actions
Projectshttps://github.com/plotly/plotly.R/projects
Wikihttps://github.com/plotly/plotly.R/wiki
Security and qualityhttps://github.com/plotly/plotly.R/security
Insightshttps://github.com/plotly/plotly.R/insights
https://github.com/plotly/plotly.R
New issuehttps://github.com/login?return_to=https://github.com/plotly/plotly.R/issues/1553
New issuehttps://github.com/login?return_to=https://github.com/plotly/plotly.R/issues/1553
Resize behaviour in combination with renderUI()https://github.com/plotly/plotly.R/issues/1553#top
bughttps://github.com/plotly/plotly.R/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/Fideldue
Fidelduehttps://github.com/Fideldue
on Jun 18, 2019https://github.com/plotly/plotly.R/issues/1553#issue-457590661
cpsieverthttps://github.com/cpsievert
bughttps://github.com/plotly/plotly.R/issues?q=state%3Aopen%20label%3A%22bug%22
on Jul 12, 2019https://github.com/plotly/plotly.R/issues/1553#event-2480258788
cpsieverthttps://github.com/cpsievert
on Jul 12, 2019https://github.com/plotly/plotly.R/issues/1553#event-2480283085
Use DOM el attributes to find specified height/width, closes #1553https://github.com/plotly/plotly.R/commit/51de36c768c221d078ce6c239608e31f1eff96d6
#1553https://github.com/plotly/plotly.R/issues/1553
https://docs.github.com/articles/closing-issues-via-commit-messages
51de36chttps://github.com/plotly/plotly.R/commit/51de36c768c221d078ce6c239608e31f1eff96d6
Use DOM el attributes to find specified height/width, closes #1553https://github.com/plotly/plotly.R/commit/e5ad4a3da19a2c251a3061bf067460295c1f23e7
#1553https://github.com/plotly/plotly.R/issues/1553
https://docs.github.com/articles/closing-issues-via-commit-messages
e5ad4a3https://github.com/plotly/plotly.R/commit/e5ad4a3da19a2c251a3061bf067460295c1f23e7
cpsieverthttps://github.com/cpsievert
on Aug 28, 2019https://github.com/plotly/plotly.R/issues/1553#event-2591751172
make a deep copy of x.layout.width/x.layout.height for use in the res…https://github.com/plotly/plotly.R/commit/e07f80c5e576db2bd6295e0505af78022f8da737
https://docs.github.com/articles/closing-issues-via-commit-messages
e07f80chttps://github.com/plotly/plotly.R/commit/e07f80c5e576db2bd6295e0505af78022f8da737
https://github.com/jcheng5
jcheng5https://github.com/jcheng5
on Aug 30, 2019https://github.com/plotly/plotly.R/issues/1553#issuecomment-526675271
@cpsieverthttps://github.com/cpsievert
#1575https://github.com/plotly/plotly.R/pull/1575
cpsieverthttps://github.com/cpsievert
completedhttps://github.com/plotly/plotly.R/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
e07f80chttps://github.com/plotly/plotly.R/commit/e07f80c5e576db2bd6295e0505af78022f8da737
on Oct 8, 2019https://github.com/plotly/plotly.R/issues/1553#event-2696806274
chschanhttps://github.com/chschan
on Mar 12, 2020https://github.com/plotly/plotly.R/issues/1553#event-3121270923
[pull] master from ropensci:master (#2)https://github.com/Displayr/plotly/commit/32dde4152264fdfa964f7b3c796fb3ac91b17666
#2https://github.com/Displayr/plotly/pull/2
https://docs.github.com/articles/closing-issues-via-commit-messages
32dde41https://github.com/Displayr/plotly/commit/32dde4152264fdfa964f7b3c796fb3ac91b17666
chschanhttps://github.com/chschan
on Jun 26, 2022https://github.com/plotly/plotly.R/issues/1553#event-6880336064
[pull] master from ropensci:master (#2)https://github.com/Displayr/plotly/commit/504c33f5a9c92f511cfeade4708bfa5928d13dcc
#2https://github.com/Displayr/plotly/pull/2
https://docs.github.com/articles/closing-issues-via-commit-messages
504c33fhttps://github.com/Displayr/plotly/commit/504c33f5a9c92f511cfeade4708bfa5928d13dcc
chschanhttps://github.com/chschan
on Jul 4, 2022https://github.com/plotly/plotly.R/issues/1553#event-6924524242
Plotly june2022 (#18)https://github.com/Displayr/plotly/commit/55f49ee1fce06c206aed509fa1a944ac49fc5560
#18https://github.com/Displayr/plotly/pull/18
https://docs.github.com/articles/closing-issues-via-commit-messages
55f49eehttps://github.com/Displayr/plotly/commit/55f49ee1fce06c206aed509fa1a944ac49fc5560
Sign up for freehttps://github.com/signup?return_to=https://github.com/plotly/plotly.R/issues/1553
Sign in to commenthttps://github.com/login?return_to=https://github.com/plotly/plotly.R/issues/1553
bughttps://github.com/plotly/plotly.R/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.