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.

[Bug] Suggestion box has the wrong height when the available space is limited

See original GitHub issue

Reproducible in vscode.dev or in VS Code Desktop?

  • Not reproducible in vscode.dev or VS Code Desktop

Reproducible in the monaco editor playground?

Monaco Editor Playground Code

The code doesn't matter, the window size does.
I made a 1 minute Loom video about reproducing the bug several times in the Monaco Editor Playground:
https://www.loom.com/share/44c73f0233004e508c3d35a62da429d8

Actual Behavior

The suggestion box becomes very little—in many cases just one line high!

Expected Behavior

The suggestion box should reasonably fill the available space.

Additional Context

In VS Code, the bug is technically there (here is a 2-min video about it), but its impact is way smaller: it’s a very narrow edge case and not likely to ever cause real trouble for users, so I don’t think it’d ever get attention from the VS Code team. But for other uses of this open-source component, it’s a real bug (as I demoed it in the playground), so I think this bug report belongs in this project.

Why this hurts me: I’m a developer at Sourcegraph, and I’m building a plugin for JetBrains product where I use the Monaco Editor for our search box. The space there is pretty limited, so the suggestion box often becomes just a single line.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
klebbacommented, Sep 29, 2022

+1 — we also desire to integrate Monaco using an Iframe and encountered the same issue. At first glance I’m thinking it would be nice to be able to provide an explicit parent element for the suggestion menu.

0reactions
janarvaezcommented, Aug 10, 2022

Also, If the window is small and I have only 3 lines, (but could fit 6 in the space) I get only 1 suggestion. If I add a few line breaks to get 6 empty lines in the editor, I get 3 suggestions

Screenshot 2022-08-10 at 12 15 30 Screenshot 2022-08-10 at 12 15 58

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to get controls in WPF to fill available space?
A resizable GUI would be quite horrible if you had to play with Height , Width , MinHeight , MinWidth etc. Can you...
Read more >
BUG: floor height useless on Quest - Unity Forum
What am I doing wrong? I just want correct height like the entire library of quest games I've played. They all seem to...
Read more >
androidx.compose.foundation.layout - Android Developers
A box with no content that can participate in layout, drawing, pointer input ... A composable that defines its own content according to...
Read more >
Measurements and Error Analysis - WebAssign
The uncertainty of a single measurement is limited by the precision and accuracy of the measuring instrument, along with any other factors that...
Read more >
Full Width Containers in Limited Width Parents - CSS-Tricks
With Known % Width. Let's say the parent container was 60% wide and centered. That means there is 20% width on either side...
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