posit-dev / posit-dev/shinychat
htmlwidgets need a window resize event to restore
Open
Nobody has claimed this yet.
ai-triage:done
needs reprex
Priority: Low
- Dominant language
- TypeScript
- Stars
- 139
- Forks
- 28
- Avg merge
- 23h 44m
- Merged PRs (30d)
- 50
Description
Noticed when working on #294 that tool calls with restored htmlwidgets may need a window resize event to restore properly — leaflet maps in particular were the case I saw, but it's possible others may need seem treatment
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the htmlwidget restoration work referenced in #294 and reproduce the issue with a restored Leaflet map. Verify whether dispatching a window resize event restores the widget correctly, then check whether other restored htmlwidgets show the same behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100