Error tool tips lose styling when using overflowWidgetsDomNode #3817
Unanswered
parkertomatoes
asked this question in
Q&A
Replies: 2 comments
-
Workaround for the CSS issue seems to be to add the document.querySelector('body').classList.add('monaco-editor'); But |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for the workaround! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was trying to solve the issue of clipped tool-tips when embedding an editor in a container with an
overflow: hidden
style.This code reproduces that problem in the playground. Hover over the error squiggles to observe.
I tried to fix it by using the
overflowWidgesDomNode
option:Which worked, but all the styling disappears from the tool-tip:
I traced the issue to here:
https://github.com/microsoft/vscode/blob/master/src/vs/editor/contrib/hover/hover.ts#L339
Where a bunch of styles are added under
.monaco-editor .monaco-hover
. Adding this code to the playground code fixes the colors (though "peek problem") is still unstyled:Is a bug, or am I using this feature incorrectly?
Thanks,
Beta Was this translation helpful? Give feedback.
All reactions