mirror of https://gitgud.io/fatchan/jschan.git
even though the image is a blob, when we set the src={blob}, it doesnt load immediately thus, the offsetWidth is 0 and when expanding, the filename width is wrong (only on the first time expanding, since subsequent times, the blob has "loaded" already and now has an offsetWidth -- it is almost instant). this adds and onload to wait for the image to "load", and thus has the correct width even on the first time when expandingindiachan-spamvector
parent
0b01673e06
commit
2386e20f49
1 changed files with 6 additions and 4 deletions
Loading…
Reference in new issue