Skip to content

Incorrect padding #10

Description

@RoboNET
template:
    name: "service-receipt"
    version: 1
fonts:
    - name: main
      path: DejaVuSansMono.ttf
canvas:
    fixed: width
    width: 576
    background: "#ffffff"

layout:
    - type: text
      content: "{{plainText}}"
      size: 21
      lineHeight: 1
      wrap: false
      padding: 150
Image

Padding применяется только снизу, а не со всех сторон. Если добавить внутрь какого-то родительского элемента, то все начинает работать как ожидается

template:
    name: "service-receipt"
    version: 1
fonts:
    - name: main
      path: DejaVuSansMono.ttf
canvas:
    fixed: width
    width: 576
    background: "#ffffff"

layout:
    - type: flex
      children:
        - type: text
          content: "{{plainText}}"
          size: 21
          lineHeight: 1
          wrap: false
      padding: 150

Аналогичная проблема есть с margin

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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