google / blockly

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

Document how to set `max-height` of dropdowns dynamically #8147

Open cpcallen opened 1 month ago

cpcallen commented 1 month ago

Check for duplicates

Problem

core/css.ts sets the maximum height of dropdowns to 300px. This helps keep dropdowns from overflowing the workspace, but can also force the user to scroll field pop-ups unnecessarily, e.g. when editing large bitmaps.

Request

The maximum dropdown size can be overridden with CSS. Document how to do this.

Alternatives considered

No response

Additional context

See also #4695.

maribethb commented 1 month ago

Note that you can override the max-height of the dropdown div with css.

BeksOmega commented 1 month ago

Should this be changed to a docs issue given that?