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

Попробовать адаптивное растягивание чтобы окно монако растягивалось вмести с окном html #27

Closed
Evg-lylyk opened this issue Sep 30, 2020 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@Evg-lylyk
Copy link
Contributor

No description provided.

@salexdv
Copy link
Owner

salexdv commented Sep 30, 2020

Включить адаптивность можно немного изменив блок создания редактора в файле editor.js

editor = monaco.editor.create(document.getElementById("container"), {
    theme: "bsl-white",
    value: getCode(),
    language: language.id,
    contextmenu: true,
    automaticLayout: true // <-- добавляем эту опцию
});

В основной ветке мне бы этого делать не хотелось т.к. в документации явно указано, что это может существенно сказаться на производительности.

@Evg-lylyk
Copy link
Contributor Author

Спасибо, внедрил. Никаких проблем не заметил

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

No branches or pull requests

2 participants