Skip to content

[Bug] MessageDialogPane 仍可能过高 #7248

Open

Description

@KSSJW

问题描述 | Bug Description

#7240 统一限制了 Dialog 的宽度和高度,但是似乎 MessageDialogPane 在某些情况下仍然比较高,可能是以下部分的问题?

> HMCL/src/main/java/org/jackhuang/hmcl/ui/construct/MessageDialogPane.java (Line 77 to line 86)

            if (textFlow.computePrefHeight(400.0) <= 350.0)
                content.getChildren().setAll(textFlow);
            else {
                ScrollPane scrollPane = new ScrollPane(textFlow);
                FXUtils.smoothScrolling(scrollPane);
                scrollPane.setPrefHeight(350);
                VBox.setVgrow(scrollPane, Priority.ALWAYS);
                scrollPane.setFitToWidth(true);
                content.getChildren().setAll(scrollPane);
            }
Image

启动器崩溃报告 / 启动器日志文件 | Launcher Crash Report / Launcher Log File

hmcl-exported-logs-2026-11-09T13-43-03.zip

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions