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

Editors on page stuck at 5px height and width #44

Open
colinblaise opened this issue Jul 11, 2019 · 4 comments
Open

Editors on page stuck at 5px height and width #44

colinblaise opened this issue Jul 11, 2019 · 4 comments

Comments

@colinblaise
Copy link

Hi, thanks for the great vue component!.

I am trying to render multiple editors on the same page. However, when I load the page, all of the editors show up as a 5px black square. It's as if the editor is not yet finished loading before it is rendered.

If I add a v-if on the editors and toggle the v-if value, then it appears as expected.

Any thoughts as to why this may be happening? Spent awhile debugging it to no avail yet.

@MyCodeGame
Copy link

set automaticLayout=true

@dzcpy
Copy link

dzcpy commented Feb 2, 2020

I found even using automaticLayout=true doesn't solve this problem well. So I ended up writing a setInterval to fix it. It detects any resizing and then update the height of monaco editor, and clear the interval after 3 seconds. It might not be a decent solution but works well for me

@WhatFreshHellIsThis
Copy link

Yes, this is driving me crazy, it's very hard to resolve for some reason and creeps back up just when I think it's solved. This really needs to be addressed, it should just take up all the available space automatically.

@balhelhas
Copy link

Hello, so the issue comes from version 1.1.0 to 1.2.0. As a workaround till this is fixed revert to 1.1.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants