This repository has been archived by the owner on Jan 20, 2022. It is now read-only.
BlockMenu takes up space beyond body element, introducing scroll #342
Labels
bug
Something isn't working
BlockMenu introduces unnecessary scroll in documents by attaching itself to bottom. Happens only in Firefox.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
There should be no extra space beyond the Editor containing element
Version
11.0.7
Desktop (please complete the following information):
My analysis is that the initial
state
inBlockMenu
sets bothtop
andbottom
asundefined
causing this issue. I tried settingtop
to0
, but styled div ignored0
, lol. I guess the0
incalculatePosition
is also getting ignored, couldn't check or verify it. I changed the defaulttop
to1
and it fixed the issue.The text was updated successfully, but these errors were encountered: