v2.0.0-beta7
Zero Height Responsive Setting
Adds a new zeroHeight responsive dimension control that collapses a block's vertical footprint to zero while keeping its content visually present via overflow: visible. Intended as a clean solution for overlap layouts where a block should not contribute to document flow.
Changes
New control — MethodDimensionControls
- Added opt-in
zeroHeighttoggle (must be explicitly passed viaincludearray) - When enabled, stores
true; when panel item is opted in but toggled off, storesfalseexplicitly to support per-breakpoint overrides hasValuereturnstrueonly when actively enabled, keeping the ToolsPanel state accurate
CSS generation — MethodStyleTag.jsx & blocks.php
- When
zeroHeightistrue: emitsheight: 0; overflow: visible - When
zeroHeightisfalseon a non-base breakpoint andtrueon base: emitsheight: unset; overflow: unsetto restore normal flow at that breakpoint
Fitted Image block
- Added
zeroHeightsupport across all four breakpoints (base, mobile, tablet, wide) zeroHeightmapped to the block's outer wrapper selector in the CSS map
Other changes
- Removed
error_log()debug calls frommethod_get_block_css_declarations()inlib/blocks.php - Temporarily disabled the Bootstrap Tabs block, as it is in active development and unstable. Remove the commenting from line 114 of
lib/blocks.phpto enable. Once refactored and integrated with Method's libraries, the block will return.