makepad-2.0-troubleshooting
This skill contains shell command directives (!`command`) that may execute system commands. Review carefully before installing.
Makepad 2.0 Common Pitfalls & Troubleshooting Guide
This skill covers common mistakes when building with Makepad 2.0 and the Splash scripting language. Each pitfall includes:
- What the user sees (symptom)
- Why it happens (root cause)
- How to fix it (correct code)
Reference documents: AGENTS.md, splash.md
Pitfall #1: Container height is 0px -- UI is invisible
Symptom: Your entire UI or a section of it does not appear. The container renders with zero height, making all children invisible.
Root Cause: All View-based containers (View, SolidView, RoundedView, etc.) default to height: Fill. When a Fill container is placed inside a Fit parent (or any context where the available height is determined by children), the height resolves to 0px due to circular dependency: the parent asks the child how tall it is, the child says "as tall as my parent", and the result is zero.
Fix: Always set height: Fit on containers that should shrink-wrap their content.