Skip to content

#2002 Keep a macro block's height fit inside the block - #2005

Merged
TimothyLuke merged 1 commit into
TimothyLuke:masterfrom
LarryThiessen:fix-2002-editor-fill-on-load
Aug 23, 2026
Merged

#2002 Keep a macro block's height fit inside the block#2005
TimothyLuke merged 1 commit into
TimothyLuke:masterfrom
LarryThiessen:fix-2002-editor-fill-on-load

Conversation

@LarryThiessen

@LarryThiessen LarryThiessen commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

Fixes #2002

Since the macro-command box auto-fit, opening a sequence with several action blocks left the block list short — it stopped before the bottom of the window with empty space below and the last block clipped.

FitMacroEditBoxToContent pushes the delta of a re-fitted box up through its fixed-height ancestors, but the walk ran to the top of the widget tree. Only the containers inside a block should absorb that delta; above the block panel sit shared containers (block list, layout container, scroll frame), and every block's fit on load subtracted its own delta from those same containers again — roughly -36px per block going from the 5-row baseline to the 3-row minimum.

The walk now stops resizing at the first auto-height ancestor, which recomputes its height from its children; above that boundary it only re-lays out.

Testing

  • luac -p clean.
  • Confirmed in a running client: the editor fills the window with macro blocks on load again, and a block still grows and shrinks as its text changes.

🤖 Generated with Claude Code

FitMacroEditBoxToContent pushes the height delta of a re-fitted macro
command box up through its fixed-height ancestors, but the walk ran to
the top of the widget tree. Only the containers inside a block should
absorb that delta; above the block panel sit shared containers -- the
block list, the layout container, the scroll frame -- and every block's
fit on load subtracted its own delta from those same containers again.
On a multi-action sequence that collapsed the list area by roughly the
sum of the blocks' deltas, so the editor no longer filled the window and
the last block was clipped.

Stop resizing once the walk reaches the first auto-height ancestor: that
container recomputes its height from its children, and everything above
it follows normally. Past that boundary we only re-lay out.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@TimothyLuke
TimothyLuke merged commit 28b151c into TimothyLuke:master Aug 23, 2026
1 check passed
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.

Macro block list no longer fills the editor window on load

2 participants