fix/chat-scrollbar-overhang · PurpleFuchs · 3 Dateien · +9 −2 · 2026-10-29
Zusammenfassung
Card bcba05.
The track is drawn at Position.x + Size.x while logSize.x = overlaySize.x - padding*2 — with padding=6 and a 12px track it ended +6px past the window edge. Text scissor ran flush into the track (0px gap).
ScrollContainer.SCROLLBARWIDTHexport (additive; callers can compute layout instead of duplicating the magic 12)ChatWindowlogSize.xreserves the track width → track lands flush inside atwindow.right - padding; wheel-hover rect (:170) becomes exact as a side effectDrawChatWindowTRACKGAP=4insets the text scissor → visible text-to-track gap; collapsed overlay unchanged (no track)
Verified: per-file luajit clean.
Geänderte Dateien (3)
| Source/GuiElements/Chat/DrawChatWindow.lua | geändert | +4 −1 |
| Source/GuiElements/ScrollContainer.lua | geändert | +1 −0 |
| Source/Objects/Gui/ChatWindow.lua | geändert | +4 −1 |