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
If I have an empty html document with nothing but a div to hold the repo when I first open a file it seems like the div calculates it height before all the GitHub like formatting has been applied so the bottom of the file is cut-off. After the first one has loaded all the rest of the files in the repo work fine because their formatting is applied before they are shown. I suspect it has something to do with the fonts not being downloaded the first time.
The text was updated successfully, but these errors were encountered:
I personally tested this because I got the same problem, an easy fix is to force height auto when you open a file (not in the tree)
here's a simple jquery I made to fix this, be aware, this checks if there's any pre tags which exists, so if you got more than one pre in the file make it not just check for 1 but for the ammount you got on default +1
var fixedfirst = false;
setInterval(function check() {
if (!fixedfirst) {
if ($("pre").length) {
$(".repo").height('auto');
fixedfirst = true;
}
}
}, 200);
If I have an empty html document with nothing but a div to hold the repo when I first open a file it seems like the div calculates it height before all the GitHub like formatting has been applied so the bottom of the file is cut-off. After the first one has loaded all the rest of the files in the repo work fine because their formatting is applied before they are shown. I suspect it has something to do with the fonts not being downloaded the first time.
The text was updated successfully, but these errors were encountered: