Skip to content

The default size cannot be set when creating a Webview directly. #30

@HKMV

Description

@HKMV

Use Webview wv = new Webview(true, 800, 600); create Webview;
You will see that the window changes from small to large, instead of being 800x600 when it appears.

Looking at the source code, I found that Webview(true, 800, 600) only calls the setSize method internally, and does not set the initial size.

How do I set the default size during initialization?

OS:Windows11
JDK: OpenJDK21

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions