Skip to content

Fix Designer container Padding layout parity - #66

Merged
ProGraMajster merged 2 commits into
masterfrom
codex/issue-31-designer-padding-layout
Aug 16, 2026
Merged

Fix Designer container Padding layout parity#66
ProGraMajster merged 2 commits into
masterfrom
codex/issue-31-designer-padding-layout

Conversation

@ProGraMajster

Copy link
Copy Markdown
Owner

Summary

  • Designer lays out container children from the same padded content rectangle used by runtime layout.
  • Live Padding changes trigger immediate relayout without stale selection geometry.
  • Root handling preserves Form behavior while adding UserControl padding parity.

Coverage

  • Dock.Fill and Top/Bottom/Left/Right
  • nested containers, asymmetric/edge-case Padding, Margin, and Anchor behavior
  • UserControl roots and safe custom UserControl preview
  • serialization, code generation, and reverse parsing

Manual validation

The repository owner confirmed in Designer Playground that Padding = 50 immediately affects nested Dock.Fill controls, including a TextBox.

Automated validation on the exact branch SHA: Debug and Release builds PASS (0 warnings / 0 errors), Designer and VSIX Debug/Release PASS, tests 1112/1112 including Designer 197/197, and git diff --check PASS.

Closes #31

Designer now lays out children from the parent's padded content rectangle.

Live Padding edits trigger layout invalidation and refresh effective hit-test geometry.

Dock variants and nested containers now match runtime behavior, with Padding + Margin parity covered by regression tests.

Serialization and code generation remain backward-compatible.
@ProGraMajster
ProGraMajster merged commit 0960c54 into master Aug 16, 2026
1 check passed
@ProGraMajster
ProGraMajster deleted the codex/issue-31-designer-padding-layout branch August 16, 2026 14:50
@github-project-automation github-project-automation Bot moved this from Backlog to Done in ModernFormsNext Roadmap Aug 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Designer does not visually apply container Padding during layout

1 participant