Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Monaco Editor Height Default Fit Container #1476

Closed
1 task
HecticHiccups opened this issue Jun 11, 2019 · 1 comment
Closed
1 task

Monaco Editor Height Default Fit Container #1476

HecticHiccups opened this issue Jun 11, 2019 · 1 comment

Comments

@HecticHiccups
Copy link

HecticHiccups commented Jun 11, 2019

monaco-editor version: 0.17.0
Browser: Chrome
OS: Windows

Steps or JS usage snippet reproducing the issue:

Here's a mockup of what I'm trying to accomplish on my Razor Page in .NET https://codepen.io/HecticHiccups/pen/zVOggP

My current styling that renders in the image below.

#app {
    height: 100% !important;
    width: 100% !important;
    background-color: red;
}

#root {
    border: 2px solid blue;
    left: 0;
    top: 0;
    height: 100% !important;
    width: 100% !important;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#root > * {
     height: 100% !important; /*Temporary Fix: height: 100vh !important; */
     width: 100%;
}

The editors dimensions defaults to 1300 x 5 & doesn't resize.
monaco-height-issue

Temporary Fix using the commented styling above.
heightFix

Todo List:

  • I want to be able to have the editor resize to fit it's container similar to how my codepen works.
@alexdima
Copy link
Member

Let's track in #794

@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants