[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
Owner

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.

🤖 Filed by mariuslozo-boop's AI agent (Claude Code, Claude Sonnet 5.5 + Claude Opus 5.5 review), not by mariuslozo-boop personally.

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_draw path, 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 from GuiGraphicsExtractor.java:1437-1448): if lineWidth > right - left the text is drawn left-aligned at left - (int) pos, scissored to left, right, top, bottom, and pos slides from 0 to lineWidth - (right - left) with Util.getMillis, period max(overflow * 0.5, 3) s, sine easing. A label that fits is centred with Mth.clamp(centerX, left + w/2, right - w/2).

The vanilla widgets that scroll, found with a search of all of net/minecraft/client and com/mojang in the 26.3 sources for acceptScrolling, acceptScrollingWithDefaultCenter, extractScrollingStringOverContents, defaultScrollingHelper:

vanilla widget where it scrolls margin
AbstractButton: Button, Button.Plain, CycleButton, dialog and other Button subclasses AbstractButton.extractDefaultLabel, AbstractButton.java:39-40 (called from Button.java:129-131, CycleButton.java:72-82) 2 on each side (AbstractWidget.java:92-98)
AbstractSliderButton (every OptionInstance slider, AbstractOptionSliderButton, dialog SliderImpl) AbstractSliderButton.java:67-80 (line 78) 2
SpriteIconButton.TextAndIcon SpriteIconButton.java:266-276 (line 273): left = x + 2, right = x + width - spriteWidth - 4 custom
MenuTabBar.MenuTabButton (Create World tabs, Stats) MenuTabBar.java:141-147 1
FriendsOverlayTabButton FriendsOverlayTabButton.java:46-52 1
StringWidget with TextOverflow.SCROLLING StringWidget.java:58-76 (line 72); only FriendEntry.java:101 sets it 2

Checked and NOT scrolling in vanilla: Checkbox (wrapped MultiLineTextWidget, Checkbox.java:27-49,106-117), PlainTextButton (PlainTextButton.java:23-25), EditBox, pack and world list entries (StringWidget with the default CLAMPED: TransferableSelectionList.java:213, WorldSelectionList.java:421-442), screen titles.

Where Horizon does it (main 3adcfcbb3)

vanilla Horizon what it does with a too-long label
AbstractButton, CycleButton ui::button / ui::button_as, crates/horizon-client-render/src/ui.rs:353-409 -> centered_text (ui.rs:325-351, called at ui.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, ... cut by characters (see below), left-aligned at x + 3
AbstractSliderButton ui::slider / ui::slider_ext, ui.rs:411-475 -> centered_text at ui.rs:474; users options_ui.rs:3465,3487, graphics_style.rs:137,163, hdr_calibration.rs:192, dialogs.rs:595, block_editor.rs:331 same
the button parts of the title screens: Main Menu, Select World, Create World (Game/World/More tabs), Multiplayer list, Edit Server, Direct Connection their own loop, crates/horizon-client/src/title.rs:2950-3003 (label at :2994-3002, plain batch.text), buttons from title.rs:1545+, title/create_world.rs:229-330, multiplayer.rs:633-700 NOT clipped at all: drawn centred over the full text width, spilling past the button
MenuTabBar.MenuTabButton title/create_world.rs:480-520 not clipped (no measured tab label overflows today, see below)
defaultScrollingHelper not ported on main; the coming fix for #6129 adds screen_draw::scrolling_text / scroll_offset for screen_draw::button (Resource Packs screen and Leave Bed)
StringWidget SCROLLING, FriendsOverlayTabButton, SpriteIconButton.TextAndIcon none: the port ledger marks them service-only or no caller in 26.3 (tools/port_map/client2-011.tsv:75,78, client2-016.tsv:7) not applicable

The clip itself, ui.rs:336-350:

// Clip by characters (vanilla scrolls; we show the part that fits).
... if used > w - 2.0 { break; }
batch.text_styled(atlas, &shown, x + 1.0, y, color, true);

so a label wider than w - 4 shows the longest prefix of at most w - 6 px, starting at x + 3 (a label that overflows by a single pixel loses its last letter), and the player can never read the rest. The doc comment of centered_text still says "scrolled when wider than w (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_text is 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::build on .local/horizon-client/26.3, Font::width_text, the same widths ui.rs and screen_draw::Measure use) in all 144 lang files of assets/minecraft/lang, against the real widget width from OptionsUi::layout and Title::buttons, at a 640x360 GUI. A label overflows when label width > widget width - 4, which is vanilla's lineWidth > right - left with 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:

  • The vanilla options pages (Options, Video Settings, Sound, Controls, Key Binds, Mouse, Chat, Accessibility, Font, Skin, Online): 3326 (language, page, widget) combinations overflow. 141 of the 144 languages have at least one (the exceptions are it_it, lzh, zh_tw), median 23 widgets per language, the most in sah_sah (67), got_de (62), bs_ba (51).
  • Key Binds while a key is being rebound (> 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.
  • The title-screen buttons, Select World / Create World / Main Menu (not counting the 20 px icon buttons): 156 (language, screen, button) cells, 53 languages.
  • Multiplayer footer, confirm and direct-connect buttons: 64 languages have at least one.

English (en_us), widget 150 px wide unless noted, so a label of more than 146 px overflows:

screen widget label (value state) label px
Video Settings Graphics API Graphics API: Prefer Vulkan (Experimental) 216
Video Settings Weather Effect Radius Weather Effect Radius: 3 Blocks ... 10 Blocks 160 to 166
Video Settings Simulation Distance Simulation Distance: 12 Chunks ... 32 Chunks 150
Video Settings Texture Filtering Texture Filtering: Anisotropic 147
Accessibility High Contrast Block Outlines ...: OFF / : ON 165 / 159
Accessibility Text Background Text Background: Everywhere 151
Accessibility, Chat Text Background Opacity ...: 10%, 25%, ... 100% 149 to 155
Font Japanese Glyph Variants Japanese Glyph Variants: OFF 149
Key Binds (75 px, limit 71) Attack/Destroy, Use Item, Sprint, Pick Block while rebinding > Left Button <, > Right Button <, > Left Control <, > Middle Button < 75, 78, 80, 83
Key Binds any of those keys when it clashes with another [ Left Control ] 78

Examples in other languages (page, widget, label, px in a 150 px widget):

language worst on the vanilla pages overflowing combinations
de_de Video, Graphics API: Grafikschnittstelle: Vulkan bevorzugen (experimentell), 272 30
fr_fr Accessibility: Contraste élevé du contour des blocs : Non, 222 31
es_es Video: API de gráficos: Usar Vulkan (experimental), 220 15
ru_ru Controls: Использовать/Установить: Переключение, 217 19
pl_pl Video: API graficzne: Preferuj Vulkan (eksperymentalne), 254 23
pt_br Video: API gráfica: Preferir Vulkan (experimental), 217 39
tr_tr Accessibility: Yüksek Kontrast Blok Vurguları: KAPALI, 197 27
ja_jp Video, Biome Blend: バイオームの重なり度合:11×11(極めて高い), 201 7
zh_cn Video, Graphics API: 图形API:优先使用Vulkan(实验性), 156 2

Title-screen buttons (these are not clipped at all today):

language screen button (px) label px
hi_in Multiplayer footer Join Server (100): परिसेवक में शामिल हो जाए 154
szl Multiplayer footer Direct Connection (100): Bezpostrzydnie połōnczynie 143
ta_in Select World Re-Create (71): மீண்டும் உருவாக்கவும் 92
de_de Select World Re-Create (71): Neu erzeugen 70 (limit 67)
hi_in Select World Edit (71): संपादित करें 75
ta_in Main Menu Quit Game (98): விளையாட்டிலிருந்து வெளியேறு 122
so_so Create World, World tab World Type (150): Magaca Adduunka: Weyn bulsho dabiici ah oo dabiici ah oo ka soo jeeda beeraha iyo fauna ku dhex nool degaan weyn 590
hi_in Create World, World tab World Type (150): दुनिया का प्रकार: महान जैवक्षेत्र 209

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, isolated HORIZON_HOME / APPDATA / TEMP, HORIZON_TELEMETRY_URL=off, HORIZON_NO_AUDIO=1, 1280x720, guiScale:2, language set in options.txt, driven with horizon-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.

  1. en_us, Options > Video Settings, after set simulation-distance 1.0 and 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 by ui with label: "Graphics API: Prefer Vulkan (Experimental)" and label: "Simulation Distance: 32 Chunks", bounds [325, 95, 150, 20] and [325, 206, 150, 20]. What is drawn is Graphics API: Prefer Vulkan and Simulation Distance: 32 Chunk: the (Experimental) and the last s are gone, at both times. Vanilla slides the whole label.
  2. en_us, Options > Controls > Key Binds, a click on the Left Control (Sprint) key button (en_keys_sheet.png). ui says label: "> Left Control <", bounds [358, 100, 75, 20]; the screenshot shows > Left Contro at both times, with the underline of the rebinding state.
  3. 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.
  4. 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

  • I did not run it on a build that scrolls these labels, so what vanilla looks like here is from the sources, not from a vanilla run. I did not run vanilla 26.3.
  • The widths are from the font metrics and the layout code, not read off the screenshots for all 144 languages. Hindi, Tamil and other shaped scripts are measured with 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.
  • Values: sliders were set to 7 positions and cycle buttons stepped 6 times, not every value of every option (Render Distance and Max Framerate have many more values). The Options layout was measured at a 640x360 GUI only; the two-column widgets are 150 px in vanilla whatever the window, but other pages with window-dependent widths were not tried at other sizes.
  • Not measured: the Create World Game tab and More tab in every state, world-edit and backup screens, the dialog screens (server-sent dialogs, 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 for On-Screen Keyboard: Horizon alone). They go through the same ui::button and would be fixed by the same change.
  • Whether the clock for ui::button should be hud_overlays::now_ms() (the Options and Resource Packs screens already use it) or a parameter is not decided.
  • The open PR #6185 ("Buttons: a label wider than the button keeps its left edge") touches screen_draw::button for #6129 and does not scroll; it does not touch ui.rs.

Duplicates

Searched open and closed issues and PRs of horizon-rust/horizon for: 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 where scrolling_text comes 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.extractScrollingStringOverContents for the widget paths: ui::button, ui::button_as, ui::slider, ui::slider_ext (which covers all the ui:: callers), and the title-screen buttons (title.rs, create_world.rs, multiplayer.rs), by reusing screen_draw::scrolling_text / scroll_offset, with the clock passed in so the tests are deterministic. Leave centered_text for titles and text lines as it is.

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. > 🤖 Filed by mariuslozo-boop's AI agent (Claude Code, Claude Sonnet 5.5 + Claude Opus 5.5 review), not by mariuslozo-boop personally. 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_draw` path, 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 from `GuiGraphicsExtractor.java:1437-1448`): if `lineWidth > right - left` the text is drawn left-aligned at `left - (int) pos`, scissored to `left, right, top, bottom`, and `pos` slides from 0 to `lineWidth - (right - left)` with `Util.getMillis`, period `max(overflow * 0.5, 3)` s, sine easing. A label that fits is centred with `Mth.clamp(centerX, left + w/2, right - w/2)`. The vanilla widgets that scroll, found with a search of all of `net/minecraft/client` and `com/mojang` in the 26.3 sources for `acceptScrolling`, `acceptScrollingWithDefaultCenter`, `extractScrollingStringOverContents`, `defaultScrollingHelper`: | vanilla widget | where it scrolls | margin | | --- | --- | --- | | `AbstractButton`: `Button`, `Button.Plain`, `CycleButton`, dialog and other `Button` subclasses | `AbstractButton.extractDefaultLabel`, `AbstractButton.java:39-40` (called from `Button.java:129-131`, `CycleButton.java:72-82`) | 2 on each side (`AbstractWidget.java:92-98`) | | `AbstractSliderButton` (every `OptionInstance` slider, `AbstractOptionSliderButton`, dialog `SliderImpl`) | `AbstractSliderButton.java:67-80` (line 78) | 2 | | `SpriteIconButton.TextAndIcon` | `SpriteIconButton.java:266-276` (line 273): `left = x + 2`, `right = x + width - spriteWidth - 4` | custom | | `MenuTabBar.MenuTabButton` (Create World tabs, Stats) | `MenuTabBar.java:141-147` | 1 | | `FriendsOverlayTabButton` | `FriendsOverlayTabButton.java:46-52` | 1 | | `StringWidget` with `TextOverflow.SCROLLING` | `StringWidget.java:58-76` (line 72); only `FriendEntry.java:101` sets it | 2 | Checked and NOT scrolling in vanilla: `Checkbox` (wrapped `MultiLineTextWidget`, `Checkbox.java:27-49,106-117`), `PlainTextButton` (`PlainTextButton.java:23-25`), `EditBox`, pack and world list entries (`StringWidget` with the default `CLAMPED`: `TransferableSelectionList.java:213`, `WorldSelectionList.java:421-442`), screen titles. **Where Horizon does it (main `3adcfcbb3`)** | vanilla | Horizon | what it does with a too-long label | | --- | --- | --- | | `AbstractButton`, `CycleButton` | `ui::button` / `ui::button_as`, `crates/horizon-client-render/src/ui.rs:353-409` -> `centered_text` (`ui.rs:325-351`, called at `ui.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`, ... | cut by characters (see below), left-aligned at `x + 3` | | `AbstractSliderButton` | `ui::slider` / `ui::slider_ext`, `ui.rs:411-475` -> `centered_text` at `ui.rs:474`; users `options_ui.rs:3465,3487`, `graphics_style.rs:137,163`, `hdr_calibration.rs:192`, `dialogs.rs:595`, `block_editor.rs:331` | same | | the button parts of the title screens: Main Menu, Select World, Create World (Game/World/More tabs), Multiplayer list, Edit Server, Direct Connection | their own loop, `crates/horizon-client/src/title.rs:2950-3003` (label at `:2994-3002`, plain `batch.text`), buttons from `title.rs:1545+`, `title/create_world.rs:229-330`, `multiplayer.rs:633-700` | NOT clipped at all: drawn centred over the full text width, spilling past the button | | `MenuTabBar.MenuTabButton` | `title/create_world.rs:480-520` | not clipped (no measured tab label overflows today, see below) | | `defaultScrollingHelper` | not ported on main; the coming fix for #6129 adds `screen_draw::scrolling_text` / `scroll_offset` for `screen_draw::button` (Resource Packs screen and Leave Bed) | | | `StringWidget` SCROLLING, `FriendsOverlayTabButton`, `SpriteIconButton.TextAndIcon` | none: the port ledger marks them service-only or no caller in 26.3 (`tools/port_map/client2-011.tsv:75,78`, `client2-016.tsv:7`) | not applicable | The clip itself, `ui.rs:336-350`: ```rust // Clip by characters (vanilla scrolls; we show the part that fits). ... if used > w - 2.0 { break; } batch.text_styled(atlas, &shown, x + 1.0, y, color, true); ``` so a label wider than `w - 4` shows the longest prefix of at most `w - 6` px, starting at `x + 3` (a label that overflows by a single pixel loses its last letter), and the player can never read the rest. The doc comment of `centered_text` still says "scrolled when wider than `w` (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_text` is 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::build` on `.local/horizon-client/26.3`, `Font::width_text`, the same widths `ui.rs` and `screen_draw::Measure` use) in all 144 lang files of `assets/minecraft/lang`, against the real widget width from `OptionsUi::layout` and `Title::buttons`, at a 640x360 GUI. A label overflows when `label width > widget width - 4`, which is vanilla's `lineWidth > right - left` with 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: - The vanilla options pages (Options, Video Settings, Sound, Controls, Key Binds, Mouse, Chat, Accessibility, Font, Skin, Online): 3326 (language, page, widget) combinations overflow. 141 of the 144 languages have at least one (the exceptions are `it_it`, `lzh`, `zh_tw`), median 23 widgets per language, the most in `sah_sah` (67), `got_de` (62), `bs_ba` (51). - Key Binds while a key is being rebound (`> 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. - The title-screen buttons, Select World / Create World / Main Menu (not counting the 20 px icon buttons): 156 (language, screen, button) cells, 53 languages. - Multiplayer footer, confirm and direct-connect buttons: 64 languages have at least one. English (`en_us`), widget 150 px wide unless noted, so a label of more than 146 px overflows: | screen | widget | label (value state) | label px | | --- | --- | --- | --- | | Video Settings | Graphics API | `Graphics API: Prefer Vulkan (Experimental)` | 216 | | Video Settings | Weather Effect Radius | `Weather Effect Radius: 3 Blocks` ... `10 Blocks` | 160 to 166 | | Video Settings | Simulation Distance | `Simulation Distance: 12 Chunks` ... `32 Chunks` | 150 | | Video Settings | Texture Filtering | `Texture Filtering: Anisotropic` | 147 | | Accessibility | High Contrast Block Outlines | `...: OFF` / `: ON` | 165 / 159 | | Accessibility | Text Background | `Text Background: Everywhere` | 151 | | Accessibility, Chat | Text Background Opacity | `...: 10%`, `25%`, ... `100%` | 149 to 155 | | Font | Japanese Glyph Variants | `Japanese Glyph Variants: OFF` | 149 | | Key Binds (75 px, limit 71) | Attack/Destroy, Use Item, Sprint, Pick Block while rebinding | `> Left Button <`, `> Right Button <`, `> Left Control <`, `> Middle Button <` | 75, 78, 80, 83 | | Key Binds | any of those keys when it clashes with another | `[ Left Control ]` | 78 | Examples in other languages (page, widget, label, px in a 150 px widget): | language | worst on the vanilla pages | overflowing combinations | | --- | --- | --- | | de_de | Video, Graphics API: `Grafikschnittstelle: Vulkan bevorzugen (experimentell)`, 272 | 30 | | fr_fr | Accessibility: `Contraste élevé du contour des blocs : Non`, 222 | 31 | | es_es | Video: `API de gráficos: Usar Vulkan (experimental)`, 220 | 15 | | ru_ru | Controls: `Использовать/Установить: Переключение`, 217 | 19 | | pl_pl | Video: `API graficzne: Preferuj Vulkan (eksperymentalne)`, 254 | 23 | | pt_br | Video: `API gráfica: Preferir Vulkan (experimental)`, 217 | 39 | | tr_tr | Accessibility: `Yüksek Kontrast Blok Vurguları: KAPALI`, 197 | 27 | | ja_jp | Video, Biome Blend: `バイオームの重なり度合:11×11(極めて高い)`, 201 | 7 | | zh_cn | Video, Graphics API: `图形API:优先使用Vulkan(实验性)`, 156 | 2 | Title-screen buttons (these are not clipped at all today): | language | screen | button (px) | label px | | --- | --- | --- | --- | | hi_in | Multiplayer footer | Join Server (100): `परिसेवक में शामिल हो जाए` | 154 | | szl | Multiplayer footer | Direct Connection (100): `Bezpostrzydnie połōnczynie` | 143 | | ta_in | Select World | Re-Create (71): `மீண்டும் உருவாக்கவும்` | 92 | | de_de | Select World | Re-Create (71): `Neu erzeugen` | 70 (limit 67) | | hi_in | Select World | Edit (71): `संपादित करें` | 75 | | ta_in | Main Menu | Quit Game (98): `விளையாட்டிலிருந்து வெளியேறு` | 122 | | so_so | Create World, World tab | World Type (150): `Magaca Adduunka: Weyn bulsho dabiici ah oo dabiici ah oo ka soo jeeda beeraha iyo fauna ku dhex nool degaan weyn` | 590 | | hi_in | Create World, World tab | World Type (150): `दुनिया का प्रकार: महान जैवक्षेत्र` | 209 | 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`, isolated `HORIZON_HOME` / `APPDATA` / `TEMP`, `HORIZON_TELEMETRY_URL=off`, `HORIZON_NO_AUDIO=1`, 1280x720, `guiScale:2`, language set in `options.txt`, driven with `horizon-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. 1. `en_us`, Options > Video Settings, after `set simulation-distance 1.0` and 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 by `ui` with `label: "Graphics API: Prefer Vulkan (Experimental)"` and `label: "Simulation Distance: 32 Chunks"`, bounds `[325, 95, 150, 20]` and `[325, 206, 150, 20]`. What is drawn is `Graphics API: Prefer Vulkan` and `Simulation Distance: 32 Chunk`: the `(Experimental)` and the last `s` are gone, at both times. Vanilla slides the whole label. 2. `en_us`, Options > Controls > Key Binds, a click on the Left Control (Sprint) key button (`en_keys_sheet.png`). `ui` says `label: "> Left Control <"`, bounds `[358, 100, 75, 20]`; the screenshot shows `> Left Contro` at both times, with the underline of the rebinding state. 3. `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. 4. `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** - I did not run it on a build that scrolls these labels, so what vanilla looks like here is from the sources, not from a vanilla run. I did not run vanilla 26.3. - The widths are from the font metrics and the layout code, not read off the screenshots for all 144 languages. Hindi, Tamil and other shaped scripts are measured with `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. - Values: sliders were set to 7 positions and cycle buttons stepped 6 times, not every value of every option (Render Distance and Max Framerate have many more values). The Options layout was measured at a 640x360 GUI only; the two-column widgets are 150 px in vanilla whatever the window, but other pages with window-dependent widths were not tried at other sizes. - Not measured: the Create World Game tab and More tab in every state, world-edit and backup screens, the dialog screens (server-sent dialogs, `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 for `On-Screen Keyboard: Horizon` alone). They go through the same `ui::button` and would be fixed by the same change. - Whether the clock for `ui::button` should be `hud_overlays::now_ms()` (the Options and Resource Packs screens already use it) or a parameter is not decided. - The open PR #6185 ("Buttons: a label wider than the button keeps its left edge") touches `screen_draw::button` for #6129 and does not scroll; it does not touch `ui.rs`. **Duplicates** Searched open and closed issues and PRs of `horizon-rust/horizon` for: 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 where `scrolling_text` comes 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.extractScrollingStringOverContents` for the widget paths: `ui::button`, `ui::button_as`, `ui::slider`, `ui::slider_ext` (which covers all the `ui::` callers), and the title-screen buttons (`title.rs`, `create_world.rs`, `multiplayer.rs`), by reusing `screen_draw::scrolling_text` / `scroll_offset`, with the clock passed in so the tests are deterministic. Leave `centered_text` for titles and text lines as it is.
Author
Owner

@mariuslozo-boop commented on GitHub (Nov 1, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6561932256 --> @mariuslozo-boop commented on GitHub (Nov 1, 2026): 🤖 Agent: /claim
Sign in to join this conversation.
No milestone
No project
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
No description provided.