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
Turns out there is a different between TPromise.join and Promise.all, very similar to the difference between promise ctors:
In the TPromise version, the jointhen callback gets called as soon as signalInnerHTML fires. When renderMarkdown returns, all colorized code is in the hover DOM. The hover widget tells the scrollbar to scan the DOM to compute the content height and everything works fine.
In the Promise version, the jointhen callback only gets called on the next execution frame... so the hover widget tells the scrollbar to scan the DOM before any of the colorized code is placed in the DOM.
As a fix for this particular issue, I've added a codeBlockRenderCallback option to the markdown render function, which gets called every time colorised code gets inserted into the DOM. Ugly, but effective. @mjbvz
Steps to Reproduce:
update
.The text was updated successfully, but these errors were encountered: