Skip to content

Commit

Permalink
fix(client): move scissor zone of tab content two "pixels" up
Browse files Browse the repository at this point in the history
  • Loading branch information
Apehum committed Dec 5, 2024
1 parent 2695879 commit 4ab254d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion client/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ If you encounter any issues, please report them on Discord: https://discord.gg/u
Versions 2.0.x and 2.1.x are protocol-compatible,
so there’s no need to worry if the server hasn't been updated to 2.1.x.

### Changes in 2.1.3
### Changes in 2.1.3
- Scissor zone of tab content is moved two "pixels" up. Fixes white line in 1.21.2+ under the tab menu. (https://imgur.com/a/FJQGNpo)
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public void setScrollTop(double scrollTop) {
}

protected void renderList(@NotNull PoseStack stack, int x, int y, int mouseX, int mouseY, float delta) {
RenderUtil.enableScissor(0, 0, width, y1 - y0 + 4);
RenderUtil.enableScissor(0, 0, width, y1 - y0 + 6);
for (int index = 0; index < entries.size(); index++) {
Entry entry = entries.get(index);
EntryPosition position = entryPositions.get(index);
Expand Down

0 comments on commit 4ab254d

Please sign in to comment.