You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You might notice the setTimeout. That's because for some reason, when I load the editor the first time, there's a chance that the gutters will be almost 1000px wide. This will persist until I load other files a few times, at which point it will eventually correct itself. Delaying the load seems to be the only semi-reliable way I've found to prevent this from happening. Is there a better way?
The text was updated successfully, but these errors were encountered:
I have the following code to load a codemirror text area dynamically, changing the contents and styling based on the file:
You might notice the setTimeout. That's because for some reason, when I load the editor the first time, there's a chance that the gutters will be almost 1000px wide. This will persist until I load other files a few times, at which point it will eventually correct itself. Delaying the load seems to be the only semi-reliable way I've found to prevent this from happening. Is there a better way?
The text was updated successfully, but these errors were encountered: