Skip to content

Item.background.padding overwrites Item.padding #796

@jinusean

Description

@jinusean

Setting an item's background.padding_left & background.padding_right overwrites its padding_left & padding_right

Given the following settings

...
padding_left=20
padding_right=20

background.padding_left=67
background.padding_right=76

We get the following result from querying item

{
 "name": "space.1",
    "type": "item",
    "geometry": {
        "drawing": "on",
        "position": "left",
        "associated_space_mask": 0,
        "associated_display_mask": 0,
        "ignore_association": "off",
        "y_offset": 0,
        "padding_left": 67,         <----- overwritten here
        "padding_right": 76,       <----- overwritten here
        "scroll_texts": "off",
        "width": -1,
        "background": {
            "drawing": "on",
            "color": "0xffcc0000",
            "border_color": "0xff89b4fa",
            "border_width": 1,
            "height": 23,
            "corner_radius": 4294967290,
            "padding_left": 67,          <----- from here
            "padding_right": 76,        <----- from here
            "x_offset": 0,
            "y_offset": 0,
            "clip": 0.000000,
            "image": {
                "value": "(null)",
                "drawing": "off",
                "scale": 1.000000
            },
            "shadow": {
                "drawing": "off",
                "color": "0xff000000",
                "angle": 30,
                "distance": 5
            }
        }
    }
}

Item paddings work normally in the absence of background.paddings

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions