Given that your YIU has ZERO device scaling, it's either absurdly undersized on 4k devices, and oversized forcing scrolling on lesser devices.
One of the entire reasons for the HTML behaviors you seem to be complaining about is to make layouts be like water. Your fixed layouts are a middle finger to users regardless of device, and reek of your not caring about anything but your own personal screen size, which at 1300px fixed (aka broken) I can only assume you're stuck at 1366x768 or similar.
That you've made your scripting many times more complex by having to manage your own event intercepts certainly does you no favors. Simple buttons allowed to wrap would be far more useful than ... whatever that is.
It also doesn't help that you've got fixed widths on text containing buttons, illegible colour contrasts, unrecognizable buttons for the same reason...
You seem to be confusing the browser with the fact people have different sized screens, different default font sizes, and are doing everything you can to drag practices back to "how many PX" like the worst of the early 2000's. Quality applications -- native or web -- NEED to adjust to the screen size and font preferences otherwise nobody is going to want to use it that isn't on your magical combination of same!
The two dozen separate canvases present all doing this:
style="position: absolute; width: 1300px; height: 660px;"
Being proof enough of that. You are telling anyone with a different size or resolution screen to go f*** themselves! Train wreck laundry list of how NOT to use web technologies or to even code applications if you care in the slightest about anyone other than yourself using it.
And for what? "Wah wah I can't plan for scrollbars, wrapping behaviors, and dynamic viewport sizes?"