question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add a setting like fixedOverflowWidgets for the context menu

See original GitHub issue

monaco-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:open
  • Created 5 years ago
  • Reactions:4
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
alexdimacommented, Nov 20, 2018

Might be related to #1199. But @spahnke AFAIK the flag fixedOverflowWidgets was never influencing the context menu (in any editor version).

0reactions
lidermanronycommented, Jul 11, 2022

ping on this

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found