Closed joechung-msft closed 2 years ago
I corrected the 'vs' import in the repro. Apologies.
Adding an overflow-y: auto
setting to the parameter-hints-widget
CSS class results in this on Edge:
I don't know if you would consider that an acceptable fix, but that's what we wound up doing as a mitigation.
@joaomoreno Would adding overflow-y: auto
to the widget hurt VS Code in any way ? Would you take a PR for that ?
The question is why aren't the scrollbars working in the standalone editor. In VS Code we get our scrollbars:
I'd make our scrollbars work instead of having the browser scrollbars.
If I add a max-height: 250px
on the .wrapper
class, I see the custom scrollbars:
250px is the max-height
set on the .wrapper
DIV's parent element (.editor-widget parameter-hint-widget
).
Firefox has the same issue, and applying the max-height
also makes the custom scrollbars visible (without the horizontal scrollbar even):
Yeah something's off in Edge's layout code... Chrome and FF seem OK in Windows.
The fixedOverflowWidgets
setting works in 0.14.3 and works around this issue so this is only an issue when that setting is false
(its default value).
Any progress to report on this issue?
Good news! This does not repro in Firefox on Windows 11 using the most recent version of monaco-editor.
Given non-Chromium Edge's deprecated state, I'm going to close this.
monaco-editor version: 0.10.0 or later (including 0.13.1) Browser: Edge, Firefox OS: Windows 10 Steps or JS usage snippet reproducing the issue:
Create a Web page with a narrow editor, e.g.,
When viewing this page with the browser also sized to be narrow, the text overflows the bounds of the parameter info widget.
NOTE: This also happens if the
fixedOverlayWidgets
option is set to true.