google / blockly

The web-based visual programming editor.
https://developers.google.com/blockly/
Apache License 2.0
12.52k stars 3.72k forks source link

Selected fields in the flyout use the main/target workspace scale #8596

Closed gonfunko closed 1 month ago

gonfunko commented 2 months ago

Check for duplicates

Description

Selected fields of blocks in the flyout appear to be using the main workspace's scale to render the selected text in the field.

Reproduction steps

  1. Disable autoclosing for flyouts
  2. Override getFlyoutScale() to return a fixed value
  3. Zoom the main workspace all the way in
  4. Select a field with editable text in a block in the flyout
  5. Observe the comically large selected text and selection ring in the flyout

Stack trace

No response

Screenshots

https://github.com/user-attachments/assets/916ac9a2-4db9-4fb8-b0c0-5fd1f58025c7

Browsers

No response