Repository navigation
Fix the script editor scrollbar being drawn over completions - #102
Merged
Merged
Conversation
On 26.x, GUI elements no longer have depth, so the scrollbar, and the slots below the editor, were drawn over the completions and signature popups. The screen now draws these popups last, above everything else. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018MRyTdV3fSV5Q5NPGep4q9
Coverage Report for CI Build 41305190378Warning Build has drifted: This PR's base is out of sync with its target branch, so coverage data may include unrelated changes. Coverage decreased (-0.09%) to 46.173%Details
Uncovered ChangesNo uncovered changes found. Coverage Regressions311 previously-covered lines in 2 files lost coverage.
Coverage Stats
💛 - Coveralls |
rubensworks
commented
Nov 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On 26.x, the editor's scrollbar handle and its syntax error mark were drawn over the completion popup. This came in with the 26 port in #100.
On 1.21 the completion and signature popups were lifted above everything with a z-offset. 26.x GUI rendering has no depth anymore, so draw order alone decides what's on top. The editor drew its scrollbar after the popups, and the container slots are drawn after the editor. So the scrollbar always covered the popup, and a popup that grows over the inventory would be covered by item icons.
The popups are now drawn by a separate
WidgetTextArea#extractPopups. The terminal screen calls it last, on a new stratum: after the container contents (slots included), and after the widgets in focus mode. Tooltips and the carried item still go above them, as on 1.21.Validation:
buildandrunGameTestServer(28/28) pass on 26.1.2.This also needs to go into master-26 with the next upmerge. The same change applies cleanly there; I tested it on 26.3 before moving it to this branch.
Generated by Claude Code