Problem/Motivation

When using three-col-dynamic.html.twig I expected the layout to dynamically use the space available, so when one column is empty because the fields are optional, shouldn't there be just 2 columns printed?

Steps to reproduce

Create a section using Rocketship 3-Col Dynamic layout, fill each column with fields, upon entering content, fill all except the fields for one column. When inspecting you'll see all columns printed.

Comments

dorien.k created an issue. See original summary.

  • Grayle committed a7badbc on 6.x
    Issue #3226860: Empty regions are still printed and take up space in...

rembrandx credited Grayle.

rembrandx’s picture

We need to add some checks for empty blocks and fields, so we can do real 'empty' region detection. At the moment there's only a check for blocks being present in the regions. But blocks tend to render even if fields are empty.

There's some suggestions in this old post:
https://drupal.stackexchange.com/questions/175389/how-do-i-properly-dete...

Not a lot of robust ones but it's a starting point.

Grayle’s picture

Oh yeah, it's a real issue, but I think the stopgap of rendering it should solve the 80% use case.

This is the core issue where they're trying to fix it properly: https://www.drupal.org/node/953034

Grayle’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.