Skip to content

Apply sensible page margin/padding defaults on CREATE PAGE #621

@ako

Description

@ako

Problem

When creating pages via MDL, no margin/padding defaults are applied, so generated layouts need manual spacing adjustment in Studio Pro.

Current behavior

The Container struct (sdk/pages/pages_widgets_container.go) has no margin/padding fields, and the page builder (mdl/executor/cmd_pages_builder_v3.go) applies none when wrapping content. Serialization (sdk/mpr/writer_pages.go) emits canvas dimensions but no spacing.

Request

Set page margins/padding to appropriate defaults automatically (and/or allow them to be set in MDL).

Touch points for a fix

  • sdk/pages/pages_widgets_container.go — add Margin/Padding fields
  • mdl/executor/cmd_pages_builder_v3.go — apply defaults
  • sdk/mpr/writer_widgets.go — serialize them
  • mdl/grammar/domains/MDLPage.g4 — accept Margin/Padding properties (if user-settable)

Source: customer feedback batch (2026-06). Reporter: Nagano. Reporter severity: 2/5.
Filed after codebase investigation at 297e0b0a.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions