insightsengineering / insightsengineering/teal.widgets

Plot widget requires resizing to show plot

Open
#359 0 comments 0 reactions 0 assignees View on GitHub
core
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.