Skip to content

Commit

Permalink
fix: more closely align flyout layout with Scratch (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
gonfunko authored Apr 26, 2024
1 parent e603c67 commit 49663ed
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/checkable_continuous_flyout.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ export class CheckableContinuousFlyout extends ContinuousFlyout {

constructor(workspaceOptions) {
super(workspaceOptions);
this.tabWidth_ = 0;
this.MARGIN = 10;
this.GAP_Y = 8;
CheckableContinuousFlyout.CHECKBOX_MARGIN = this.MARGIN;

/**
Expand Down Expand Up @@ -201,4 +204,8 @@ export class CheckableContinuousFlyout extends ContinuousFlyout {
// Patched by scratch-gui in src/lib/blocks.js.
return false;
}

getFlyoutScale() {
return 0.675;
}
}

0 comments on commit 49663ed

Please sign in to comment.