Zhincore / dynmap-trains

DynMap integration for Create Track Map
GNU General Public License v3.0
19 stars 2 forks source link

Train section in the sidebar cut off on page load #15

Closed calliecameron closed 1 week ago

calliecameron commented 3 weeks ago

My server has lots of dimensions (the planets from Ad Astra), so there's a lot of stuff in the sidebar. On page load, the dimensions section is expanded, and some or all of the trains section is off the bottom of the page (see bottom right, should be under players):

Screenshot from 2024-08-16 14-18-09

(In this image it's all off the page, in a bigger window it's partly off the page and the down arrow at the bottom is inaccessible.)

After resizing the window - even if it's changed back to the same size afterwards - the trains section is properly scaled:

Screenshot from 2024-08-16 14-18-22

calliecameron commented 3 weeks ago

When the train section is only partially visible on page load, mouse wheel scrolling also doesn't work on it till it's been resized.

calliecameron commented 3 weeks ago

This is worse on mobile, because you can't easily realize the browser to force the sidebar to render correctly (using the browser split-screen on android works).

Zhincore commented 3 weeks ago

I would assume the same happens with players though? I'm using Dynmap's list system, so that's probably issue on that side

calliecameron commented 3 weeks ago

Here's the initial state of an even smaller window with a player:

Screenshot from 2024-08-16 17-22-53

I'm not really sure what's happening. I'll file a bug against dynmap.

In the meantime, would it be possible for you to trigger dynmap's resize handler at startup as a workaround?

calliecameron commented 1 week ago

https://github.com/webbukkit/dynmap/issues/4155