Skip to content

Conversation

@Aaronontheweb
Copy link
Owner

Summary

  • Fixed ILayoutNode interface to use correct property names (WidthConstraint/HeightConstraint instead of Width/Height)
  • Fixed Render method signature to use Rect instead of ScreenBounds
  • Fixed bounds properties to use X/Y instead of Left/Top
  • Fixed render methods to use WriteAt() with SetForeground()/SetBackground() instead of non-existent SetCell()
  • Added new "Accessing Dimensions" section explaining how to get width/height from Rect bounds, IRenderContext, and Size available
  • Updated all code examples to properly extend LayoutNode base class
  • Documented fluent size methods available on LayoutNode base class
  • Updated best practices to reference correct IRenderContext methods

Test plan

  • Review documentation renders correctly
  • Verify code examples compile against actual API

- Fix ILayoutNode interface: Width/Height → WidthConstraint/HeightConstraint
- Fix Render signature: ScreenBounds → Rect
- Fix bounds properties: Left/Top → X/Y
- Fix render methods: SetCell() → WriteAt() with SetForeground/SetBackground
- Add new "Accessing Dimensions" section explaining how to get width/height
- Update all code examples to extend LayoutNode base class properly
- Document fluent size methods available on LayoutNode base class
- Update best practices to reference correct IRenderContext methods
@Aaronontheweb Aaronontheweb enabled auto-merge (squash) December 22, 2025 16:15
@Aaronontheweb Aaronontheweb merged commit 1d1bb34 into dev Dec 22, 2025
7 checks passed
@Aaronontheweb Aaronontheweb deleted the docs/fix-custom-components branch December 22, 2025 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants