joryirving/windowstead #90: keep side-dock tiles square instead of vertically stretched - #97
Conversation
|
✅ Automated recommendation: APPROVE Analysis engine: MiniMax-M2.7@https://api.minimax.io/v1 Review: Fix side-dock tiles vertically stretched (PR #97)SummarySingle-line fix in Change Analysisworld_grid.custom_minimum_size = Vector2(world_size.x, world_size.y)
world_grid.size = Vector2(world_size.x, world_size.y) // NEW LINEThe PR body correctly diagnoses the Godot GridContainer behavior:
This matches the root cause described in issue #90 and the implementation aligns with the fix rationale. Standards Compliance✅ Tile-first dock sizing (AGENTS.md): The fix maintains square tile geometry by deriving exact grid dimensions from tile calculations, not sizing the dock first. ✅ Minimal, focused change: Single file, single logical change addressing one specific bug. ✅ Repository conventions: Pattern of Linked Issue Fit
Unknowns / Needs Verification
RecommendationApprove with note: The diagnosis is sound and the fix targets the correct mechanism (Godot GridContainer sizing behavior). However, consider verifying in a built/exported artifact before close, per the issue's explicit requirement that the fix hold "in the actual shipped/downloaded build." |
Fixes #90. The only sets a floor — the parent has padding (), so the GridContainer expands beyond its minimum and Godot's GridContainer stretches tiles to fill available space. Setting explicitly locks the grid to exact dimensions, keeping tiles square.