insightsengineering / insightsengineering/teal.widgets
Plot widget requires resizing to show plot
- Dominant language
- R
- Stars
- 6
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
On multiple applications I see the widget for plots not resizing. One needs to click the button for the plot to be resized as can be shown on the video below.
In addition the video shows that some plots are not shown until the resizing happens (This could be a problem with using grid and grid.draw instead of plot).
https://github.com/user-attachments/assets/a6332bf9-b205-4167-a073-6d32796cd068
There is a [similar report for shinydashboard](https://github.com/rstudio/shinydashboard/issues/245), so the issue might be deeper
_Originally posted by @llrs-roche in https://github.com/insightsengineering/teal.osprey/issues/338#issuecomment-5129966655_
Contributor guide
Research direction
Reproduce the plot widget behavior using the linked video and inspect how the widget handles resizing and plot rendering. Compare the behavior with the linked shinydashboard report and investigate whether grid/grid.draw is involved; done means plots appear at the correct size without clicking the resize button.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 45/100