Skip to content

The height of path line is incorrect when stroke-width is increasing #8276

Closed
@callesp

Description

@callesp

Bug Description

When increasing stroke-width, the height of path is rendering incorrectly as below:
(stroke-width: 5px)
Image

(stroke-width: 50px)
Image

Reproducible Code (if applicable)

export component Demo inherits Rectangle{
    width: 300px;
    height: 300px;
    
    Path {
        stroke: darkgreen;
        stroke-width: 50px;

        viewbox-height: 100;
        viewbox-width: 100;

        MoveTo {
            x: 0;
            y: 0;
        }

        LineTo {
            x: 0;
            y: 100;
        }

        Close {}
    }
}

Environment Details

  • Slint Version: 1.11.0
  • Platform/OS: Windows and SlintPad
  • Programming Language: Slint
  • Backend/Renderer: default

Product Impact

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    a:pathThe Path element implementation, compiler support and runtime (mS,bO)enhancementNew feature or request

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions