Skip to content

Inconsistent position of menu for a block close to bottom of the viewport #1042

@piotrbaldych-cr

Description

@piotrbaldych-cr

Describe the bug
When opening the menu for a block close to the bottom of the viewport the positioning is inconsistent.

To Reproduce

Reproduced in https://www.blocknotejs.org/examples/basic/minimal

Position content and editor so the empty block is close to the bottom of the viewport (but not too close)
image

Click on a plus once, the menu is positioned above the empty block:
image

Click on same plus second time, the menu is positioned below and very small:
image

Misc

  • Node version: 22.2.0
  • Package manager: yarn
  • Browser: Firefox 129.0.2
  • I'm a sponsor and would appreciate if you could look into this sooner than later 💖

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingprio:highHigh priority

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions