-
Notifications
You must be signed in to change notification settings - Fork 47
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
bug: styles not always applying correctly #314
Comments
Relates to lgpage/rxtutor#212 |
Initially, I tried waiting for CodeMirror to load (within the CodeMirrorComponent) and then call Eventually, I found this article https://0xdbe.github.io/AngularSecurity-DisableInlineCriticalCSS about Angulars (12+) optimization involving first inlining critical CSS and then delaying the loading of non-critical CSS. CodeMirrors CSS was contained within the non-critical CSS. My guess is that to fix this issue (for said optimization), the critical parts of the CodeMirror CSS would need to be inlined within the My workaround was to set |
Same error, my workaround is to call cm.refresh() when I do focus in the codemirror but I disable some options like line number because seems not to apply correctly before I refresh |
This is a bit of an unusual one. When using a form control to set the value for the CodemirrorComponent the styles don't always apply correctly w.r.t. element sizes resulting in what looks like nothing being shown in the text area.
Template (snippet)
Component (snippet)
It is evident that the code has been added to the DOM
However the element sizes have not computed correctly
The text was updated successfully, but these errors were encountered: