scratchfoundation / scratchfoundation/scratch-blocks

Field textinput does not resize properly

Open
#913 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs-discussion
Dominant language
JavaScript
Stars
2.8k
Forks
1.6k
Avg merge
4h 51m
Merged PRs (30d)
12

Description

A textinput does not resize properly when used just as a "field" (as opposed to being use as an "input"). When the field gets the focus, the editable field resizes the size of the block, rather than the size of field you are editing.


Moved from LLK/scratch-www#1328
/cc @paulabonta

Contributor guide

Open the contributing guide

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 reproducing the resizing behavior when a textinput is used as a field rather than an input and receives focus. Trace how the editable field and containing block determine their sizes, then verify that focusing the field resizes only the field being edited rather than the whole block.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.