From a6325ed0e36f26d6f509f2f1950c9278e2c9fb67 Mon Sep 17 00:00:00 2001 From: Aaron Dodson Date: Mon, 16 Mar 2026 12:57:59 -0700 Subject: [PATCH] fix: Fix a bug that could cause menus to scroll incorrectly on mouseover (#9603) * fix: Fix a bug that could cause menus to scroll incorrectly on mouseover * refactor: Simplify CSS --- packages/blockly/core/css.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/packages/blockly/core/css.ts b/packages/blockly/core/css.ts index de9e682f8..c29f9f97c 100644 --- a/packages/blockly/core/css.ts +++ b/packages/blockly/core/css.ts @@ -452,17 +452,14 @@ input[type=number] { } /* State: selected/checked. */ -.blocklyMenuItemCheckbox { - height: 16px; - position: absolute; - width: 16px; -} - .blocklyMenuItemSelected .blocklyMenuItemCheckbox { background: url(<<>>/sprites.png) no-repeat -48px -16px; float: left; margin-left: -24px; + width: 16px; + height: 16px; position: static; /* Scroll with the menu. */ + display: block; } .blocklyMenuItemRtl .blocklyMenuItemCheckbox {