BeaconCMS / BeaconCMS/live_monaco_editor

Vertical Sizing

Open
#34 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Elixir
Stars
130
Forks
23
PR merge metrics
No merged PRs in 30d

Description

https://github.com/BeaconCMS/live_monaco_editor/blob/main/assets/js/live_monaco_editor/editor/code_editor.js#L100

I am running into an issues with my single page app, where the size of the editor keeps growing based on the content - where as what I want is for it to be static (and change if the parent container resizes).

Do you have any guidance on how that could work? I commented out that line and I get the result I want. Is there any options I can pass in to prevent the existing behaviour?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with assets/js/live_monaco_editor/editor/code_editor.js around line 100 and reproduce the editor's growth in a single-page app. Compare the current behavior with that line commented out, then check how the parent container resize is handled. Done means the editor remains static while responding to parent size changes without relying on the commented-out code.

Written by the indexing model from the issue text.

Assessment

Tech stack
elixir, javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.