rexrainbow/phaser3-rex-notes/rexui-layout-sizers
- community
Checking that the SKILL.md file is still in the repository.
Use this skill when building RexUI layouts with sizer, gridSizer, fixWidthSizer, overlapSizer, nested sizers, RexUI layout(), child proportion, expand, align, padding, spacing, childrenMap, or layout debugging. Triggers on: RexUI layout, RexUI sizer, gridSizer, fixWidthSizer, overlapSizer, this.rexUI.add.sizer, layout(), proportion, expand, RexUI nested layout.
Install
npx vskill@latest install rexrainbow/phaser3-rex-notes/rexui-layout-sizersSKILL.md
RexUI Layout Sizers
Use this skill for RexUI layout composition. It covers the four primary layout factories and the shared BaseSizer behavior used by most RexUI widgets.
Use This First
Pick the layout factory before writing component config:
| Need | Use | |
|---|---|---|
| A horizontal or vertical row/column | sizer | |
| Known rows and columns | gridSizer | |
| Children that wrap by width | fixWidthSizer | |
| Children stacked in the same rectangle | overlapSizer |
Default to sizer unless the user clearly needs a grid, wrapping flow, or overlay.
Required Setup
This skill assumes RexUI is already available as this.rexUI. If not, use rexui-setup-and-factory first.
For npm-installed projects, the setup import is:
References
Read these only when needed:
references/sizer-config.md: config fields, add config, shared BaseSizer methods.references/layout-recipes.md: reduced recipes for the four primary layout factories.references/layout-gotchas.md: common mistakes and debugging checks.
Core Rules
- Call
.layout()after adding children or changing layout-relevant config. - Children are Phaser game objects or RexUI game objects, not plain strings.
- Use
spaceon the container for outer/item spacing. - Use child
paddingfor spacing around one child. - Use child
proportionto distribute remaining space insizer. - Use child
expandwhen the child should fill its assigned layout area. - Give important children
keyvalues so code can retrieve them withgetElement(). - Keep nested layouts explicit: create child sizers first, then add them to parent sizers.
Source File Map
templates/ui/basesizer/BaseSizer.d.ts: shared layout methods and child map methods.templates/ui/sizer/Sizer.d.ts: linear layout.templates/ui/gridsizer/GridSizer.d.ts: fixed grid layout.templates/ui/fixwidthsizer/FixWidthSizer.d.ts: wrapping flow layout.templates/ui/overlapsizer/OverlapSizer.d.ts: stacked/overlay layout.templates/ui/<layout>/Factory.js: exact factory signatures.
Related Skills
rexui-setup-and-factory: plugin setup and factory discovery.rexui-components-catalog: choose a component family.rexui-basic-widgets: labels, buttons, tabs, sliders.rexui-dialogs-and-popups: dialog layouts built from sizers.rexui-scroll-lists-and-tables: scrollable panels and grid tables.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/rexui/rexui-layout-sizers/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/rexrainbow/phaser3-rex-notes/rexui-layout-sizers)