Add a setting like fixedOverflowWidgets for the context menu
See original GitHub issuemonaco-editor version: 0.15.5 Browser: any OS: Windows 10
Edited: There was no bug in the first place, so this is rather a feature request.
Hi,
we embed the editor in a div which has overflow: hidden
set which I can’t change easily (it’s a custom element coming from our framework). If you set fixedOverflowWidgets: true
widgets like the suggestion list are able to overflow the editor space such that they are shown to their full extent. However, this does not affect the context menu. It would be great to have a similar option for it.
Playground example: Open a context menu at the border of the marked div.
monaco.editor.create(document.getElementById("container"), {
value: "function hello() {\n\talert('Hello world!');\n}",
language: "javascript",
fixedOverflowWidgets: true
});
<div style="height: 300px; overflow: hidden; border: 1px solid red;">
<div id="container" style="height:100%;"></div>
</div>
Thanks!
Issue Analytics
- State:
- Created 5 years ago
- Reactions:4
- Comments:9 (6 by maintainers)
Top Results From Across the Web
Add a setting like fixedOverflowWidgets for the context menu · Issue ...
Hi,. we embed the editor in a div which has overflow: hidden set which I can't change easily (it's a custom element coming...
Read more >Add Settings Context Menu In Windows 10 - Winaero
In this article, we will see how to add any page of Settings to the context menu in Windows 10. We will create...
Read more >How To Add “Settings” To The Context Menu on ... - YouTube
How To Add “ Settings ” To The Context Menu on the Desktop in Windows 10 [Tutorial]Registry Entry: https://pastebin.com/C1he1T8AThis tutorial ...
Read more >Adding Context Menus in Your App - Apple Developer
This sample project demonstrates how to add context menus to user-interface elements such as views, controls, table views, collection views, and web views....
Read more >Qt: best way to add a context menu to the central widget?
self.addActions(self.imageLabel, (editInvertAction, …)) where self is a QMainWindow , and imageLabel is a QLabel set as ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Might be related to #1199. But @spahnke AFAIK the flag
fixedOverflowWidgets
was never influencing the context menu (in any editor version).ping on this