Skip to content

Commit a6325ed

Browse files
authored
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
1 parent 14cbb9a commit a6325ed

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

packages/blockly/core/css.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -452,17 +452,14 @@ input[type=number] {
452452
}
453453
454454
/* State: selected/checked. */
455-
.blocklyMenuItemCheckbox {
456-
height: 16px;
457-
position: absolute;
458-
width: 16px;
459-
}
460-
461455
.blocklyMenuItemSelected .blocklyMenuItemCheckbox {
462456
background: url(<<<PATH>>>/sprites.png) no-repeat -48px -16px;
463457
float: left;
464458
margin-left: -24px;
459+
width: 16px;
460+
height: 16px;
465461
position: static; /* Scroll with the menu. */
462+
display: block;
466463
}
467464
468465
.blocklyMenuItemRtl .blocklyMenuItemCheckbox {

0 commit comments

Comments
 (0)