Strange behavior for widgets after setting fixedOverflowWidgets: true
See original GitHub issuemonaco-editor version: 0.21.0 Browser: Chrome OS: MacOS Playground code that reproduces the issue:
To fix some layout issue, i just give monaco editor parent container with overflow: hidden
, and give fixedOverflowWidgets: true
when setup the monaco editor to try to solve widgets display issue. However my editor behaves strangely for all related widgets. Because of some reason i am not able to show code, the screenshot are listed:
Before i set fixedOverflowWidgets: true
, since i am adding overflow: hidden
, this behaves normally(widgets get hidden) as expected:
After i add fixedOverflowWidgets: true
try to solve problems caused by overflow: hidden
:


Although The suggestion widgets and hover widgets can fully displayed, the are now moving far away from my text input. I have no idea why this happens. Is there any solutions to fix this behavior or is there alternative ways to solve widgets displaying problems when i am setting overflow: hidden
to the parent element of monaco editor?
Cheers!
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (1 by maintainers)
@alexdima well i think i solved the problem. Although i am not sure what cause it but now everything works well. Thanks for your comment and this project, gonna close this issue.
@hacker0limbo I see, thanks for the info!
I created a new issue with sample repro code: https://github.com/microsoft/monaco-editor/issues/2503