Very wide settings window for text HUD elements
Describe the bug
There seems to be an issue with text HUD elements (non text HUD elements work as expected), where the settings windows width is wider than the screen. From my limited testing this only appears to happen on wider screens, but I'm not sure if thats the only case this is an issue in. my resolution when testing was 3420x2214.
I did a bit of testing and it looks like it has something to do with .wide, here. Removing that line fixes the issue (not sure what that line does though).
Steps to reproduce
- Started meteor client on a device with a screen resolution of 3420x2214
- Added a text HUD element any of them work for this
- Opened the settings window for the element
Meteor Version
1.21.8 - #16
Minecraft Version
1.21.8
Operating System
macOS
Before submitting a bug report
-
[x] This bug wasn't already reported (I have searched bug reports on GitHub).
-
[x] This is a valid bug (I am able to reproduce this on the latest dev build).
in a debugger (or addon/whatever method you have on hand) can you run Utils#getWindowWidth and send the output?
1680
in a debugger (or addon/whatever method you have on hand) can you run
Utils#getWindowWidthand send the output?
Hi, I have the same issue. Already exists at least for a year.
Monitor 3840x2160 the output is 3840. Monitor 1920x1080 the output is 1920.
I think the issue is not Utils#getWindowWidth, but instead with how the minWidth variable is used.
The issue is later on, that this already "correct" value gets scaled one more time.