meteor-client icon indicating copy to clipboard operation
meteor-client copied to clipboard

Very wide settings window for text HUD elements

Open cqb13 opened this issue 5 months ago • 4 comments

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.

Image

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).

Image

Steps to reproduce

  1. Started meteor client on a device with a screen resolution of 3420x2214
  2. Added a text HUD element any of them work for this
  3. 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).

cqb13 avatar Aug 07 '25 01:08 cqb13

in a debugger (or addon/whatever method you have on hand) can you run Utils#getWindowWidth and send the output?

crosby-moe avatar Aug 07 '25 04:08 crosby-moe

1680

cqb13 avatar Aug 07 '25 04:08 cqb13

in a debugger (or addon/whatever method you have on hand) can you run Utils#getWindowWidth and 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.

RealMuffinTime avatar Aug 08 '25 16:08 RealMuffinTime

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.

RealMuffinTime avatar Aug 08 '25 16:08 RealMuffinTime