Skip to content

Components have undocumented property padding #6288

@Enyium

Description

@Enyium

I couldn't use the property name padding on a component, because it's already implicitly defined.

This code shows "0" for me, so not even the value StyleMetrics.layout-padding:

component Foo {
    //property <length> padding;
}

export component Demo {
    foo := Foo {}
    Text {
        text: foo.padding / 1px;
    }
}

What's that about? Should it be removed, or documented and possibly assigned the correct layout value?

Metadata

Metadata

Assignees

No one assigned

    Labels

    a:layoutsRelated to the layouting and positioning of the elements (mO,bT)priority:lowLowest priority. The issue is kept open for tracking purpose, but noone is actively working on this

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions