posit-dev / posit-dev/shinychat

htmlwidgets need a window resize event to restore

Open
#296 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.