Skip to content

Commit

Permalink
refactor: don't call position() in show()
Browse files Browse the repository at this point in the history
The later call to reflow() itself winds up calling position(), so this calculation is redundant.
  • Loading branch information
gonfunko committed Sep 11, 2024
1 parent 5883c8d commit 4e54901
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions core/flyout_base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -711,9 +711,6 @@ export abstract class Flyout

this.filterForCapacity();

// Correctly position the flyout's scrollbar when it opens.
this.position();

// Listen for block change events, and reflow the flyout in response. This
// accommodates e.g. resizing a non-autoclosing flyout in response to the
// user typing long strings into fields on the blocks in the flyout.
Expand Down

0 comments on commit 4e54901

Please sign in to comment.