yaustar.github.io icon indicating copy to clipboard operation
yaustar.github.io copied to clipboard

Mini stats obstructed

Open LeXXik opened this issue 2 years ago • 3 comments

Currently mini stats are only partially visible if the left panel is collapsed or not visible at all if the panel is expanded. Consider drawing it above the panel.

image image

LeXXik avatar Mar 29 '23 10:03 LeXXik

Mini stats is actually rendered in WebGL so I can't have it above HTML AFAIK

yaustar avatar Mar 29 '23 10:03 yaustar

Oh, I thought it was a simple div? image

LeXXik avatar Mar 29 '23 10:03 LeXXik

Hmm, I see. So the original mini stats doesn't allow an offset. If we can extend it, so that when it calculates its position, it would also take the panel width into consideration. We can do it by:

const leftOffset = document.getElementById("left-panel").offsetWidth;
// then add that offset to the position of the ministats

LeXXik avatar Mar 29 '23 12:03 LeXXik