Skip to content

Sheet with border-radius creates huge space after title in version 7.0.262 #5488

Description

@Eric-Chomba

Summary

Sheet with border-radius in version 7.0.233 is okay but in version 7.0.262, it creates unexpected space after title.

Minimal reproducer

Using this test case

CSS Code

cntSheet {
    border-radius: 4mm 4mm 0mm 0mm; padding: 0mm; margin: 0mm; border: none; background: blue;
}

Java Code

    public void runApp() {
        Form form = new Form("Sheet Test", BoxLayout.y());
        Button btn = new Button("Show Sheet");
        form.add(btn);
        btn.addActionListener(e -> sheetTest());
        form.show();
    }
    
    private void sheetTest() {
        Sheet sheet = new Sheet(null, "Title");
        sheet.setLayout(BoxLayout.y());
        sheet.setUIID("cntSheet");
        
        sheet.add(new Label("Test label 1"));
        sheet.add(new Label("Test label 2"));
        sheet.show();
    }

Steps to reproduce

Run test above in simulator

Expected and observed behavior

Look the same in version 7.0.262 as in 7.0.233

Codename One version

7.0.233 & 7.0.262

JDK version

17

Target environment

Simulator, Android, iOS

Last known working version

No response

Logs and diagnostics

Screenshots or recordings

Screenshot in version 7.0.233

Image

Screenshot in version 7.0.262

Image

Report checks

  • I searched existing issues and discussions for this behavior.
  • The reproducer contains no credentials, signing keys, or private customer data.
  • I understand that triage is not a commitment to a fix date.

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