Skip to content

fix: resize flyout on workspace resize; navigate navigable stacks - #10599

Merged
mikeharv merged 1 commit into
RaspberryPiFoundation:mainfrom
mikeharv:flyout-fixes
Oct 20, 2026
Merged

mikeharv merged 1 commit into
RaspberryPiFoundation:mainfrom
mikeharv:flyout-fixes

Conversation

@mikeharv

Copy link
Copy Markdown
Contributor

The basics

This fixes two core bugs related to flyouts, both of which will aid in delivering updates to the toolbox-search plugin.

The details

Proposed Changes

  1. When navigating stacks (e.g in a flyout), filter the top level navigation by items that are actually navigable.
    This is testable in core Blockly by creating a toolbox that ends with a non-navigable separator:
image

Before the change, attempting to wrap categories fails with a warning in the console. Screenshot below shows the result of pressing down arrow with "Math" category already focused:
image

With this change, navigation proceeds to the next navigable:

Screen.Recording.2026-10-20.at.3.49.58.PM.mov
  1. When the workspace resizes, also resize the flyout workspace.
    This doesn't provide an immediately obvious benefit, however it's necessary to keep a pinned element aligned with the right side of a horizontal flyout. Previously it would stay at its old x position but now it track's the flyout's right edge. These screen captures were recorded on the feat!: update toolbox search UI #10551 branch.

Before:

Screen.Recording.2026-10-20.at.3.53.53.PM.mov

After:

Screen.Recording.2026-10-20.at.3.55.51.PM.mov

Additional Information

Unblocks #10551

@mikeharv
mikeharv requested a review from a team as a code owner October 20, 2026 20:12
@mikeharv
mikeharv requested a review from gonfunko October 20, 2026 20:12
@github-actions github-actions Bot added the PR: fix Fixes a bug label Oct 20, 2026
Comment thread packages/blockly/core/workspace_svg.ts
@mikeharv
mikeharv merged commit ed5bc3d into RaspberryPiFoundation:main Oct 20, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: fix Fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants