mirror of
https://github.com/horizon-rust/horizon.git
synced 2026-12-03 20:54:04 +07:00
[GH-ISSUE #6229] Button, slider and cycle-button labels that are wider than their widget are cut off (Options, Key Binds) or spill over their neighbours (Create World, Select World, Multiplayer) instead of scrolling like vanilla #2023
Closed
opened 2026-11-02 15:51:26 +07:00 by bsakaguchi
·
1 comment
No Branch/Tag specified
main
layers/tab-mark
layers/render-telemetry
automation/native-hook-stamp
layers/plan
bench/smp-perf-union3
bench/smp-perf-union2
perf/hopper-cart-item-columns
perf/guest-pickup-columns
perf/hopper-container-entity-columns
bench/smp-perf-union
perf/spawner-player-scans
perf/ticking-chunk-neighbours
pr-screenshots
nightly-state
nightly/build-2026-11-08-1
nightly/build-2026-11-08-2
agent/native-prebuilt-install
feat/shop-fortnite
agent/native-prebuilt-export
ci/runner-gc-busy-versioned-bin
nightly/build-2026-11-07-2
agent/cg69-11273-after-11457
nightly/build-2026-11-07-1
fix/storage-is-multiple-of
perf/name-tag-layout-cache-from-10328
perf/zlib-level-2
deploy/smp-profile
pvp/hud-layout
fix/launcher-uninstall-window
nightly/build-2026-11-05-3
nightly/build-2026-11-05-2
nightly/build-2026-11-05-1
fix/9382-review-fixes
deploy/r9-1-moderation
deploy/rtp1-8669
bench/site-2026-11-04
nightly/build-2026-11-04-3
screenshots/launcher-dezer
nightly/build-2026-11-04-2
dezer/partner
perf/spawn-start-palette
agent/rdbtcvs/server-preload-existing-world
agent/rdbtcvs/server-no-mesh-tables
screenshots/launcher-redesign-5
deploy/r8-1-slowtick-culprit
fix/8570-font-fishy-any
screenshots/lr6-audit
lr6/instance-defaults
nightly/build-2026-11-04-1
nightly/build-2026-11-03-3
nightly/build-2026-11-03-2
bench/stps1-diag
hotfix/r6-1-station-crash
bench/stps1-cart
perf/still-cart-collisions
fix/launcher-ko-hr-wardrobe
screenshots/launcher-redesign-4
perf/vulkan-pipeline-cache
perf/dx12-fxc-measure
perf/teleport-forget
perf/prebuild-lazy-pipelines
perf/mesh-view-first
perf/sync-data-once
perf/entity-skin-eyes
perf-jobs/pool
perf/gpu-solid-draws
perf/gpu-solid-lists
perf/upload-budget-follows-frame
perf/surface-rules-by-biome
perf/section-instances-once
nightly/build-2026-11-01-5
nightly/build-2026-11-03-1
bench/sp3-int
perf/cart-collisions-near
sweep-l/5696
sweep-l/5645
sweep-l/5644
sweep-l/5643
nightly/build-2026-11-01-4
bench/sp2-tags
mod-api-rework
bench/sp2-ovl-b
perf/world-prepare-overlap-b
nightly/build-2026-11-01-3
sweep-l/5513
sweep-l/5598
sweep-g/remerge-5696
sweep-g/remerge-5693
sweep-g/remerge-5645
sweep-g/remerge-5644
sweep-g/remerge-5643
nightly/build-2026-11-01-2
bench/sp2-prepare-times
nightly/build-2026-11-01-1
bench/sp2-props-count
bench/sp2-start-stages
perf/mimalloc-lazy-arena-commit
bench/sp2-lant
bench/sp2-lanb
bench/sp2-emk
perf/entity-models-wanted-keys
bench/sp2-mem-loaders
bench/sp2-mem-stages
bench/sp2-lan-spans
bench/sp2-stream-spans
fix/5326-remove-native-build
perf/decoration-order-lookups
perf/dedicated-world-preload
bench/sp2-rt-span
launcher-gpui-fast
bench/sp2-purge-env
feat/native-nicknames-stamped
perf/random-tick-reads-first
a3/fix-perf-bench-test
agent/finish-4958
hotfix/attack-arm
a2/fix-hub-attack
fix/audio-share-fields
feat/native-sidebar-stamped
perf/attr-ids
perf/mobs-move-back
bench/sp1-f5
bench/sp1-f4
bench/sp1-all
bench/sp1-f3
bench/sp1-f2
bench/sp1-f1
perf/net-events-list
fix/join-message-order
feat/smp-grief-hooks
feat/anticheat-speed
fix/server-floating-kick
bench/st2-f1
perf/spawn-placement-first
tools/bots-server-mix
tools/bots-view-time
debug/light-edge-4294
w5/data-file
perf/collision-shapes-w4
bench/sn-abuse
bench/sn-w4-scratch
bench/sn-w4-ladder
fix/remote-thrown-egg
union/pt3-w2
union/pt2-e3
union/wasm-removal
union/pt2-e2
union/pt2-e
union/pt2-c2
union/pt3-w1
triage/pt3-3106-check
union/pt2-c
union/pt3-5
triage/pt3-bisect-rest
triage/pt3-bisect-2608
triage/pt3-2960
ci/parity-incremental
union/pt3-4
union/pt3-3
union/pt2-a
union/pt1-wave1
triage/pt3-2608
union/pt3-2
triage/pt3-2586
triage/pt3-2544
launcher-java-inherits-abca441
launcher-java-play-99b52c2
launcher-native-auto-8ea9a2c
union/pt3-1
launcher-native-auto-f220157
union/cg29-2
union/cg29-1
launcher-delete-instance-cbacada
union/cg28-1
union/cg27-3
union/cg27-2
union/cg27-1
union/cs2-b9v2-3403
union/cs2-b9v2-2888
union/cs2-b9v2-3455
union/cs2-b9v2-text
launcher-java-command-c5221cc
launcher-java-command-266c457
launcher-join-40073ab
union/cs2-b9-2888
union/cs2-b9-e
union/cs2-b9-a
union/cs2-b9-c
launcher-java-command-a7841cc
launcher-any-version-e470f3a
launcher-java-instances-2034db1
launcher-any-version-d4120a9
launcher-any-version-795a0db
launcher-java-test-windows-75b8a17
union/cs1-b9-3048
union/cg24-u1
feat/mod-shaders-game
feat/mod-shader-check
feat/mod-storage-quota
union/cg19-r5
screenshots/nightly-1
union/cg19-r4
union/cg19-r3
union/cg19-r2
union/cg21-kacpherek-2
union/cg19-r1b
carry/2592-headless-capture
union/cg19-r1
screenshots/sculk-sidebar-2
fix/entity-nbt-duplicate-rabbit
union/cg19-a3
union/cg19-a2
cg19/union-bc
union/cg19-bc
cg21/union
union/cg21-kacpherek
feat/mods-lua
cg20/union-c
union/cg19-a
cg20/fusseltv-followups
cg20/union
screenshots/launcher-features
feat/launcher-packs
integ/cg17-w4
chore/site-redeploy-workflow
feat/sculk-banner
ci/playhorizon-parity-trial
feat/world-post-chain-hook
ci/desktop-parity-trial-3
ci/desktop-parity-trial-2
ci/desktop-parity-trial
perf/packed-storage-no-div
feat/native-shaders-sdk
pr-evidence/remove-shader-packs
pa1/remove-dh-mixins
fix/st-border
screenshots/reports-gate-2
perf/metal-occlusion-cull
fix/macos-uncapped-redraw
screenshots/perf-rd32-1190
perf/visible-bucket-sort
screenshots/shaders-1
perf/screen-overlay-wrap
screenshots/menus-vanilla
screenshots/design-gaming-website
screenshots/design-gaming
feat/horizon-shaders-rust
feat/horizon-shaders-v1
feat/shader-pack-options
perf/metal-multi-draw
perf/random-tick-reads
screenshots/update-channels
screenshots/f2b-resource-packs
integ/w2
screenshots/f2a-resource-packs
feat/codemods-1
screenshots/live-count
perf/random-tick-batches
feat/raytracing-spike
screenshots/platform-batch
integ/w1
fix/main-moving-block-tint
screenshots/f3-dynamic-lights
screenshots/f1-shaders
docs/perf-comparison-v2
screenshots/q2-parity-entities-audio
screenshots/q1-parity-ui
screenshots/p4-worldgen-chunks
screenshots/b2-rendering
screenshots/perf-frame-cost
feat/companion-safety
feat/companion-polish2
feat/companion-route
feat/companion-nether
integ/contrib-10-21
feat/companion-planner
feat/companion-end
feat/companion-polish
feat/companion-integ
feat/companion-voices
feat/companion-engine
feat/companion-skills
feat/companion-body
feat/companion-brain
feat/companion-senses
feat/companion
screenshots/launcher-servers
perf/lod-side-faces
perf/section-occlusion-cull
perf/compact-terrain-vertex-20byte
fix/server-thread-default
perf/chunk-occupied-columns
media/modpacks-launcher
fix/server-game-rules-page
review/contrib-review-1-startup-batch
fix/f3-network-counters
fix/clouds-cached-mesh
fix/remesh-tail
feat/vaults
pr-evidence/291
pr-evidence/287
pr-evidence/285
feat/perf-comparison
pr-evidence/238
design-review
fix/particles-63-missing-types
t3/achieve-full-parity
prepare-fix
graphics
launcher-0.1.2
game-bugs
feel
menus
cleanup
launcher
parity/screens
parity/leftovers
parity/server-leftovers
parity/menus-golem
parity/platform-maths
parity/save-roundtrip
parity/old-saves
parity/old-saves-flat
parity/warden-sculk
parity/spawn-gear
parity/rendering-gaps
parity/dedicated-server
parity/villager-social
parity/render-distance
parity/mobs-b
parity/block-followups
parity/mobs-a
parity/score-subtitles
parity/loom-crafter
parity/tablist-border
parity/raids
parity/tooling
parity/rendering-be
parity/hud
parity/entity-ai
parity/rendering-anim
parity/rendering-hud
parity/saves
parity/blocks
parity/loot-spawn
parity/multiplayer
parity/input
parity/assets
ci/ludodesktop-runner
launcher@0.2.56
launcher@0.2.55
launcher@0.2.54
launcher@0.2.53
launcher@0.2.52
launcher@0.2.51
nightly-source/2026-11-08-fdc87ae
nightly
launcher@0.2.50
nightly-2026-11-07
nightly-source/2026-11-07-2ebf00a
nightly-source/2026-11-07-6560641
launcher@0.2.49
launcher@0.2.48
launcher@0.2.47
launcher@0.2.46
launcher@0.2.45
launcher@0.2.44
launcher@0.2.43
nightly-2026-11-05
nightly-source/2026-11-05-66f3981
nightly-source/2026-11-05-38609b7
nightly-source/2026-11-05-f319701
launcher@0.2.42
launcher@0.2.41
launcher@0.2.40
nightly-2026-11-04
nightly-source/2026-11-04-6475f62
nightly-source/2026-11-04-3fb4c31
launcher@0.2.39
launcher@0.2.38
nightly-source/2026-11-04-67dad0d
nightly-2026-11-03
nightly-source/2026-11-03-2944480
nightly-source/2026-11-03-f42ef42
launcher@0.2.37
launcher@0.2.36
launcher@0.2.35
launcher@0.2.34
nightly-2026-11-01
nightly-source/2026-11-01-c9d474d
nightly-source/2026-11-01-4aa6854
nightly-source/2026-11-01-8c02c0b
launcher@0.2.33
nightly-source/2026-11-01-07b7ea3
launcher@0.2.32
nightly-source/2026-10-31-d91cab6
nightly-source/2026-10-31-aa27eca
launcher@0.2.31
nightly-source/2026-10-31-68ac6f6
nightly-source/2026-10-31-9d979ca
nightly-source/2026-10-31-7635280
nightly-source/2026-10-31-7aa0e28
launcher@0.2.30
launcher@0.2.29
nightly-source/2026-10-30-1da354b
nightly-source/2026-10-30-587f81f
nightly-source/2026-10-30-41672b1
nightly-source/2026-10-30-ba6344a
nightly-source/2026-10-30-fbd7288
nightly-source/2026-10-30-a99ef86
nightly-source/2026-10-30-33f417f
nightly-source/2026-10-30-df583d3
nightly-source/2026-10-30-a46ce68
launcher@0.2.28
nightly-source/2026-10-29-a305d38
launcher@0.2.27
nightly-source/2026-10-29-baa379d
nightly-source/2026-10-29-d009ebd
nightly-source/2026-10-29-64e2989
nightly-source/2026-10-29-a491181
launcher@0.2.26
nightly-source/2026-10-29-45ecf7b
launcher@0.2.25
nightly-source/2026-10-29-5e391eb
nightly-source/2026-10-29-4baa571
launcher@0.2.24
launcher@0.2.23
nightly-source/2026-10-28-6f8c7a0
nightly-source/2026-10-28-9669600
launcher@0.2.22
v0.2.97
v0.2.96
v0.2.95
v0.2.94
launcher@0.2.21
v0.2.93
nightly-source/2026-10-28-83f15fa
nightly-source/2026-10-28-9b772b2
launcher@0.2.20
v0.2.92
launcher@0.2.19
launcher@0.2.18
launcher@0.2.17
v0.2.91
v0.2.90
v0.2.89
v0.2.88
v0.2.87
v0.2.86
launcher@0.2.16
v0.2.85
v0.2.84
v0.2.83
v0.2.82
v0.2.81
launcher@0.2.15
v0.2.80
v0.2.79
launcher@0.2.14
v0.2.78
v0.2.77
launcher@0.2.13
v0.2.76
v0.2.75
v0.2.74
launcher@0.2.12
v0.2.73
v0.2.72
v0.2.71
v0.2.70
launcher@0.2.11
v0.2.69
launcher@0.2.10
v0.2.68
v0.2.67
launcher@0.2.9
v0.2.66
v0.2.65
v0.2.64
v0.2.63
v0.2.62
v0.2.61
v0.2.60
v0.2.59
v0.2.58
launcher@0.2.8
v0.2.57
v0.2.56
launcher@0.2.7
v0.2.55
v0.2.54
v0.2.53
v0.2.52
v0.2.51
launcher@0.2.6
v0.2.50
v0.2.49
launcher@0.2.5
v0.2.48
v0.2.47
launcher@0.2.4
v0.2.46
v0.2.45
v0.2.44
v0.2.43
v0.2.42
v0.2.41
v0.2.40
v0.2.39
v0.2.38
v0.2.37
v0.2.36
v0.2.35
v0.2.34
v0.2.33
v0.2.32
v0.2.31
v0.2.30
launcher@0.2.3
v0.2.29
v0.2.28
launcher@0.2.2
v0.2.27
v0.2.26
v0.2.25
v0.2.24
v0.2.23
v0.2.22
v0.2.21
v0.2.20
v0.2.19
v0.2.18
v0.2.17
v0.2.16
v0.2.15
v0.2.14
v0.2.13
v0.2.12
v0.2.11
v0.2.10
v0.2.9
v0.2.8
v0.2.7
v0.2.6
v0.2.5
v0.2.4
launcher@0.2.1
v0.2.3
v0.2.2
v0.2.1
v0.2.0
launcher@0.2.0
v2026.10.23
v2026.10.22.16
v2026.10.22.15
v2026.10.22.14
v2026.10.22.13
v2026.10.22.12
v2026.10.22.11
v2026.10.22.10
v2026.10.22.09
v2026.10.22.08
v2026.10.22.07
v2026.10.22.06
v2026.10.22.05
v2026.10.22.04
v2026.10.22.03
v2026.10.22.02
v2026.10.22.01
v2026.10.22
launcher-v0.17.0
v2026.10.21
v2026.10.19.15
launcher-v0.16.0
launcher-v0.15.0
v2026.10.19.14
v2026.10.19.13
launcher-v0.14.0
launcher-v0.13.0
v2026.10.19.12
v2026.10.19.11
v2026.10.19.10
launcher-v0.12.0
v2026.10.19.09
v2026.10.19.08
v2026.10.19.07
v2026.10.19.06
launcher-v0.11.0
launcher-v0.10.0
v2026.10.19.05
v2026.10.19.04
v2026.10.19.03
v2026.10.19.02
v2026.10.19.01
v2026.10.19
v2026.10.18.27
v2026.10.18.26
launcher-v0.9.0
v2026.10.18.25
v2026.10.18.24
v2026.10.18.23
v2026.10.18.22
v2026.10.18.21
launcher-v0.8.0
v2026.10.18.20
v2026.10.18.19
v2026.10.18.18
launcher-v0.7.1
v2026.10.18.17
v2026.10.18.16
v2026.10.18.15
v2026.10.18.14
launcher-v0.7.0
v2026.10.18.13
v2026.10.18.12
v2026.10.18.11
v2026.10.18.10
v2026.10.18.09
v2026.10.18.08
v2026.10.18.07
launcher-v0.6.0
v2026.10.18.06
v2026.10.18.05
v2026.10.18.04
v2026.10.18.03
v2026.10.18.02
v2026.10.18.01
v2026.10.18
v2026.10.17.25
v2026.10.17.24
v2026.10.17.23
v2026.10.17.22
v2026.10.17.21
v2026.10.17.20
launcher-v0.5.1
v2026.10.17.19
v2026.10.17.18
v2026.10.17.17
v2026.10.17.16
v2026.10.17.15
v2026.10.17.14
launcher-v0.5.0
v2026.10.17.13
v2026.10.17.12
v2026.10.17.11
v2026.10.17.10
v2026.10.17.09
v2026.10.17.08
v2026.10.17.07
v2026.10.17.06
v2026.10.17.05
v2026.10.17.04
v2026.10.17.03
v2026.10.17.02
v2026.10.17.01
v2026.10.17
v2026.10.16.12
v2026.10.16.11
v2026.10.16.10
v2026.10.16.09
v2026.10.16.08
v2026.10.16.07
v2026.10.16.06
v2026.10.16.05
v2026.10.16.04
v2026.10.16.03
v2026.10.16.02
v2026.10.16.01
v2026.10.16
v2026.10.15.22
v2026.10.15.21
v2026.10.15.20
v2026.10.15.19
v2026.10.15.18
v2026.10.15.17
launcher-v0.4.0
v2026.10.15.16
v2026.10.15.15
v2026.10.15.14
v2026.10.15.13
v2026.10.15.12
v2026.10.15.11
v2026.10.15.10
v2026.10.15.9
v2026.10.15.8
v2026.10.15.7
v2026.10.15.6
launcher-v0.3.0
v2026.10.15.5
v2026.10.15.4
v2026.10.15.3
launcher-v0.2.1
v2026.10.15.2
v2026.10.15.1
v2026.10.15
v2026.10.14.5
v2026.10.14.4
v2026.10.14.3
launcher-v0.2.0
v2026.10.14.2
launcher-v0.1.6
launcher-v0.1.5
v2026.10.14.1
v2026.10.14
launcher-v0.1.4
launcher-v0.1.3
v2026.10.13.1
launcher-v0.1.1
v2026.10.13
v2026.10.12
archive/wip-horizon-mobs-split
archive/m2-gaming-optimization
Labels
Clear labels
bug
bug
client
crucial
documentation
duplicate
duplicate
enhancement
enhancement
enhancement
from-discord
from-discord
from-website
good first issue
in progress
launcher
multiplayer
parity
parity-regression
pull-request
Mirrored from GitHub Pull Request
release-blocker
release-now
roadmap:java-instances
roadmap:lean-code
roadmap:modpack-worldgen
roadmap:mods
roadmap:port-ledger
roadmap:server-thread
roadmap:server-tick
roadmap:smooth-frames
server
skip-release
test
No labels
bug
bug
client
crucial
documentation
duplicate
duplicate
enhancement
enhancement
enhancement
from-discord
from-discord
from-website
good first issue
in progress
launcher
multiplayer
parity
parity-regression
pull-request
release-blocker
release-now
roadmap:java-instances
roadmap:lean-code
roadmap:modpack-worldgen
roadmap:mods
roadmap:port-ledger
roadmap:server-thread
roadmap:server-tick
roadmap:smooth-frames
server
skip-release
test
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set.
Reference
horizon-rust/horizon#2023
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mariuslozo-boop on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6229
Originally assigned to: @mariuslozo-boop on GitHub.
In vanilla 26.3 every button, slider and cycle button whose label does not fit slides the label back and forth inside the widget. Horizon only does that on the Resource Packs screen and the chat's Leave Bed button (the
screen_drawpath, with the coming fix for #6129). Everywhere else a too-long label is either cut off after the last character that fits (Options, Key Binds, Video Settings, Accessibility, Chat, Sound, Mouse, Controls, Skin, Online, Font) or not clipped at all, so it is drawn past the button edges over its neighbours (Create World, Select World, Multiplayer, Main Menu). It shows in English, not only in rare languages.What vanilla does
Everything that scrolls ends in
ActiveTextCollector.defaultScrollingHelper(ActiveTextCollector.java:62-84, called fromGuiGraphicsExtractor.java:1437-1448): iflineWidth > right - leftthe text is drawn left-aligned atleft - (int) pos, scissored toleft, right, top, bottom, andposslides from 0 tolineWidth - (right - left)withUtil.getMillis, periodmax(overflow * 0.5, 3)s, sine easing. A label that fits is centred withMth.clamp(centerX, left + w/2, right - w/2).The vanilla widgets that scroll, found with a search of all of
net/minecraft/clientandcom/mojangin the 26.3 sources foracceptScrolling,acceptScrollingWithDefaultCenter,extractScrollingStringOverContents,defaultScrollingHelper:AbstractButton:Button,Button.Plain,CycleButton, dialog and otherButtonsubclassesAbstractButton.extractDefaultLabel,AbstractButton.java:39-40(called fromButton.java:129-131,CycleButton.java:72-82)AbstractWidget.java:92-98)AbstractSliderButton(everyOptionInstanceslider,AbstractOptionSliderButton, dialogSliderImpl)AbstractSliderButton.java:67-80(line 78)SpriteIconButton.TextAndIconSpriteIconButton.java:266-276(line 273):left = x + 2,right = x + width - spriteWidth - 4MenuTabBar.MenuTabButton(Create World tabs, Stats)MenuTabBar.java:141-147FriendsOverlayTabButtonFriendsOverlayTabButton.java:46-52StringWidgetwithTextOverflow.SCROLLINGStringWidget.java:58-76(line 72); onlyFriendEntry.java:101sets itChecked and NOT scrolling in vanilla:
Checkbox(wrappedMultiLineTextWidget,Checkbox.java:27-49,106-117),PlainTextButton(PlainTextButton.java:23-25),EditBox, pack and world list entries (StringWidgetwith the defaultCLAMPED:TransferableSelectionList.java:213,WorldSelectionList.java:421-442), screen titles.Where Horizon does it (main
3adcfcbb3)AbstractButton,CycleButtonui::button/ui::button_as,crates/horizon-client-render/src/ui.rs:353-409->centered_text(ui.rs:325-351, called atui.rs:400). About 50 call sites: all Options pages (options_ui.rs:3457),graphics_style.rs:124(Graphics, Advanced, HDR pages),hdr_calibration.rs:213,split_profiles.rs:329,dialogs.rs,confirm_screen.rs,lan_screen.rs,game_rules_screen.rs,experiments.rs,server_links.rs,screens.rs,block_editor.rs, ...x + 3AbstractSliderButtonui::slider/ui::slider_ext,ui.rs:411-475->centered_textatui.rs:474; usersoptions_ui.rs:3465,3487,graphics_style.rs:137,163,hdr_calibration.rs:192,dialogs.rs:595,block_editor.rs:331crates/horizon-client/src/title.rs:2950-3003(label at:2994-3002, plainbatch.text), buttons fromtitle.rs:1545+,title/create_world.rs:229-330,multiplayer.rs:633-700MenuTabBar.MenuTabButtontitle/create_world.rs:480-520defaultScrollingHelperscreen_draw::scrolling_text/scroll_offsetforscreen_draw::button(Resource Packs screen and Leave Bed)StringWidgetSCROLLING,FriendsOverlayTabButton,SpriteIconButton.TextAndIcontools/port_map/client2-011.tsv:75,78,client2-016.tsv:7)The clip itself,
ui.rs:336-350:so a label wider than
w - 4shows the longest prefix of at mostw - 6px, starting atx + 3(a label that overflows by a single pixel loses its last letter), and the player can never read the rest. The doc comment ofcentered_textstill says "scrolled when wider thanw(AbstractWidget.renderScrollingString)" but it never scrolls. The port ledger knows the gap as "minor":tools/port_map/client2-009.tsv:2,3,4,65,142(AbstractWidget.extractScrollingStringOverContents->ui.rs::centered_text, "text is clipped, not scrolled"). It is not minor in practice, see the next section.Not the same thing:
ui::centered_textis also used for screen titles and text lines (graphics_style.rs:110,hdr_calibration.rs:179,181,split_profiles.rs:240) with the whole window as the width. Vanilla does not scroll those, and a change should not scroll them either.Real overflowing labels
Measured with the client's own font (
HudAtlas::buildon.local/horizon-client/26.3,Font::width_text, the same widthsui.rsandscreen_draw::Measureuse) in all 144 lang files ofassets/minecraft/lang, against the real widget width fromOptionsUi::layoutandTitle::buttons, at a 640x360 GUI. A label overflows whenlabel width > widget width - 4, which is vanilla'slineWidth > right - leftwith margin 2. Values were cycled through 7 states (sliders at 0, 10, 25, 50, 75, 90, 100 %), so a label that overflows only in one value is counted.Summary:
it_it,lzh,zh_tw), median 23 widgets per language, the most insah_sah(67),got_de(62),bs_ba(51).> Left Control <): 717 of the 8928 (language, default key binding) cells overflow the 75 px button, in 133 languages. With the yellow[ key ]duplicate-key brackets, 657 cells in 128 languages.English (
en_us), widget 150 px wide unless noted, so a label of more than 146 px overflows:Graphics API: Prefer Vulkan (Experimental)Weather Effect Radius: 3 Blocks...10 BlocksSimulation Distance: 12 Chunks...32 ChunksTexture Filtering: Anisotropic...: OFF/: ONText Background: Everywhere...: 10%,25%, ...100%Japanese Glyph Variants: OFF> Left Button <,> Right Button <,> Left Control <,> Middle Button <[ Left Control ]Examples in other languages (page, widget, label, px in a 150 px widget):
Grafikschnittstelle: Vulkan bevorzugen (experimentell), 272Contraste élevé du contour des blocs : Non, 222API de gráficos: Usar Vulkan (experimental), 220Использовать/Установить: Переключение, 217API graficzne: Preferuj Vulkan (eksperymentalne), 254API gráfica: Preferir Vulkan (experimental), 217Yüksek Kontrast Blok Vurguları: KAPALI, 197バイオームの重なり度合:11×11(極めて高い), 201图形API:优先使用Vulkan(实验性), 156Title-screen buttons (these are not clipped at all today):
परिसेवक में शामिल हो जाएBezpostrzydnie połōnczynieமீண்டும் உருவாக்கவும்Neu erzeugenसंपादित करेंவிளையாட்டிலிருந்து வெளியேறுMagaca Adduunka: Weyn bulsho dabiici ah oo dabiici ah oo ka soo jeeda beeraha iyo fauna ku dhex nool degaan weynदुनिया का प्रकार: महान जैवक्षेत्रThe Create World tab labels (Game / World / More) fit in every language at 427 and 640 px wide.
Evidence in the real client
Nightly
4aa6854(horizon-windows-x64),--offscreen --control, isolatedHORIZON_HOME/APPDATA/TEMP,HORIZON_TELEMETRY_URL=off,HORIZON_NO_AUDIO=1, 1280x720,guiScale:2, language set inoptions.txt, driven withhorizon-ctl(ui,click,set,click-at,screenshot). (Screenshots not attached; the measurement code and tables can be shared on request.) Each is taken twice, 2.3 s apart; for the clipped widgets the two crops are pixel-identical, so nothing scrolls.en_us, Options > Video Settings, afterset simulation-distance 1.0and two clicks on Graphics API (en_video_sheet.png, crops of the 150 px buttons, time 1 on the left, time 2 on the right). The widgets are listed byuiwithlabel: "Graphics API: Prefer Vulkan (Experimental)"andlabel: "Simulation Distance: 32 Chunks", bounds[325, 95, 150, 20]and[325, 206, 150, 20]. What is drawn isGraphics API: Prefer VulkanandSimulation Distance: 32 Chunk: the(Experimental)and the lastsare gone, at both times. Vanilla slides the whole label.en_us, Options > Controls > Key Binds, a click on the Left Control (Sprint) key button (en_keys_sheet.png).uisayslabel: "> Left Control <", bounds[358, 100, 75, 20]; the screenshot shows> Left Controat both times, with the underline of the rebinding state.so_so, Singleplayer (no worlds, so it opens Create World), World tab, World Type cycled to Large Biomes (so_world_t1.png,so_world_t2.png): the 590 px label is drawn across the screen, from past the left edge of the window to the right of the neighbouring second button ("Habee", the Customize button), over it.hi_in, Multiplayer (hi_mp_t1.png,hi_mp_t2.png): "Join Server" (परिसेवक में शामिल हो जाए, 154 px in a 100 px button) and "Refresh" spill over the next buttons in the footer row, at both times.Not known / not checked
Font::width_text, which shapes them; the Hindi screenshot does not look like correctly joined Devanagari, so I do not claim that its drawn width equals the measured width.dialogs.rs), advancements, stats, trading,lan_screen,server_links,game_rules_screen, the HDR calibration and Graphics pages, and the Horizon-only pages (Extras, Controller, Pad Binds, Horizon, Agent, Shader Packs, which also overflow: 134 languages forOn-Screen Keyboard: Horizonalone). They go through the sameui::buttonand would be fixed by the same change.ui::buttonshould behud_overlays::now_ms()(the Options and Resource Packs screens already use it) or a parameter is not decided.screen_draw::buttonfor #6129 and does not scroll; it does not touchui.rs.Duplicates
Searched open and closed issues and PRs of
horizon-rust/horizonfor: scroll / scrolling / scrolling text / scrolling label / scroll label, centered_text, truncated, truncated button, long label, label too long, label clipped, text clipped, text overflow, overflow, cut off, ellipsis, marquee, button label, widget label, slider label, text does not fit, Simulation Distance, Left Control. Nothing covers it. Related but different: #6129 (open, the Resource Packs crash in 8 languages, which is wherescrolling_textcomes from), merged #5068 ("Center widget labels with vanilla integer half-widths", the centering of a label that fits), #4077 (launcher account chip overflow, not the game).Suggested scope
Port
AbstractWidget.extractScrollingStringOverContentsfor the widget paths:ui::button,ui::button_as,ui::slider,ui::slider_ext(which covers all theui::callers), and the title-screen buttons (title.rs,create_world.rs,multiplayer.rs), by reusingscreen_draw::scrolling_text/scroll_offset, with the clock passed in so the tests are deterministic. Leavecentered_textfor titles and text lines as it is.@mariuslozo-boop commented on GitHub (Nov 1, 2026):
🤖 Agent: /claim