Skip to content

Fix #3896: 下载界面对于多行信息显示错误#3901

Merged
Glavo merged 2 commits into
HMCL-dev:mainfrom
e74yp8:fix-multiline-description
May 18, 2025
Merged

Fix #3896: 下载界面对于多行信息显示错误#3901
Glavo merged 2 commits into
HMCL-dev:mainfrom
e74yp8:fix-multiline-description

Conversation

@e74yp8

@e74yp8 e74yp8 commented May 7, 2025

Copy link
Copy Markdown
Contributor

Fix #3896

问题成因

信息栏没有设置最低高度导致被版本列表挤压,只要是多行信息且版本列表超出界面高度就能复现

解决方法

將信息栏的高度綁定到prefHeight(-1)自动调节

效果展示

左边为修复前,右边为修复后
image
image

Comment thread HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/DownloadPage.java Outdated
@e74yp8 e74yp8 requested a review from burningtnt May 11, 2025 09:58
@Glavo Glavo requested a review from Copilot May 18, 2025 15:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes issue #3896 by ensuring the information panel in the download interface automatically adjusts its height, preventing it from being squeezed by an overflowing version list.

  • Fixes the minimum height issue for multi-line information display.
  • Sets the description pane's minimum height to adapt to its preferred size.

@Glavo Glavo merged commit f986df9 into HMCL-dev:main May 18, 2025
2 checks passed
@e74yp8 e74yp8 deleted the fix-multiline-description branch May 18, 2025 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] 下载界面对于多行信息显示错误

5 participants