mirror of
https://github.com/google/blockly.git
synced 2026-01-04 15:40:08 +01:00
refactor: Remove uses of AnyDuringMigration from scrollbar.ts, workspace_svg.ts, contextmenu_registry.ts, and component_manager.ts (#6318)
* refactor: Remove uses of AnyDuringMigration from scrollbar.ts. * refactor: Remove almost all uses of AnyDuringMigration from workspace_svg.ts. * refactor: Remove uses of AnyDuringMigration from contextmenu_registry.ts. * refactor: Remove uses of AnyDuringMigration from component_manager.ts. * refactor: Use String() rather than toString(). * fix: Fix lint and build errors.
This commit is contained in:
@@ -185,7 +185,7 @@ export class VerticalFlyout extends Flyout {
|
||||
|
||||
/** Scroll the flyout to the top. */
|
||||
override scrollToStart() {
|
||||
this.workspace_.scrollbar.setY(0);
|
||||
this.workspace_.scrollbar?.setY(0);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -201,7 +201,7 @@ export class VerticalFlyout extends Flyout {
|
||||
const viewMetrics = metricsManager.getViewMetrics();
|
||||
const pos = viewMetrics.top - scrollMetrics.top + scrollDelta.y;
|
||||
|
||||
this.workspace_.scrollbar.setY(pos);
|
||||
this.workspace_.scrollbar?.setY(pos);
|
||||
// When the flyout moves from a wheel event, hide WidgetDiv and
|
||||
// dropDownDiv.
|
||||
WidgetDiv.hide();
|
||||
|
||||
Reference in New Issue
Block a user