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
This commit is contained in:
Aaron Dodson
2026-03-16 12:57:59 -07:00
committed by GitHub
parent 14cbb9acba
commit a6325ed0e3
+3 -6
View File
@@ -452,17 +452,14 @@ input[type=number] {
}
/* State: selected/checked. */
.blocklyMenuItemCheckbox {
height: 16px;
position: absolute;
width: 16px;
}
.blocklyMenuItemSelected .blocklyMenuItemCheckbox {
background: url(<<<PATH>>>/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 {