-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strange behavior for widgets after setting fixedOverflowWidgets: true #2229
Comments
@hacker0limbo Can you please provide a sample on how you are instantiating the editor? You can use one of the samples at https://github.com/microsoft/monaco-editor-samples and modify it to illustrate the usage. |
@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 may I ask how you fixed this? I'm placing monaco-editor inside fluent Callout control and see the same behavior |
@weizhang-ms hello, actually i didn't solve it perfectly, what i did was avoid using if (conditionA && B && c) {
// set overflow: hidden
} else {
// don't touch this attribute
} It's been a while ago since i encountered this issue, i am not sure if they fix it, and hope this helps. If you still unsure what to do, open a new issue with more details and providing some sample code, they will give you advice immediately. |
@hacker0limbo I see, thanks for the info! I created a new issue with sample repro code: #2503 |
monaco-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 givefixedOverflowWidgets: 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 addingoverflow: hidden
, this behaves normally(widgets get hidden) as expected:After i add
fixedOverflowWidgets: true
try to solve problems caused byoverflow: 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!
The text was updated successfully, but these errors were encountered: