Gutenberg: Some blocks might not play well inside vertical aligned columns

Created on 30 Jan 2020  路  6Comments  路  Source: WordPress/gutenberg

Describe the bug
Playing with the Slideshow block in Jetpack, I found a possible bug in the Columns block.

To reproduce
Steps to reproduce the behavior:

  1. Install and activate Jetpack
  2. Add a columns block (using the 50%-50% layout preset) in a page
  3. Add a Slideshow block inside one of the columns and add some images to it
  4. Set a explicit vertical alignment in the columns block (top, center or bottom)
  5. The Slideshow disappears

Expected behavior
The block works as expected

Screenshots
alignment-none
alignment-top
alignment-center
alignment-bottom

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Firefox 72 and Chrome 79

Additional context

  • I'm using the Gutenberg version that comes with WordPress 5.3.2

Possible fix

If I add width: 100% to the .wp-block-column.is-vertically-aligned-top, .wp-block-column.is-vertically-aligned-center and .wp-block-column.is-vertically-aligned-bottom CSS rules in Gutenberg, the slider block works as expected:

.wp-block-column.is-vertically-aligned-center {
    align-self: center;
    width: 100%; /* new */
}
[Block] Columns [Status] In Progress [Type] Bug

Most helpful comment

Hi @mrleemon, thank you for reporting this issue. Hi @getdave, would you be able to have a look into this problem?

All 6 comments

Hi @mrleemon, thank you for reporting this issue. Hi @getdave, would you be able to have a look into this problem?

The Image Slider block from the following plugin https://wordpress.org/plugins/getwid/ suffers the same problem.

The Image Slider block from the following plugin https://wordpress.org/plugins/ultimate-blocks/ doesn't overflow the column when vertically aligned but there are some visual glitches if the width: 100% property is not present.

without
with

The Image Slider block from the plugin https://wordpress.org/plugins/otter-blocks/ is affected by this, too.

otter-without
otter-with

The Gutenbee plugin https://wordpress.org/plugins/gutenbee/ is also affected by this.

gutenbee-without
gutenbee-with

Andrew @aduth
I think this is an issue you might want to know about. (Since you have been working a lot with columns lately.)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jasmussen picture jasmussen  路  3Comments

BE-Webdesign picture BE-Webdesign  路  3Comments

spocke picture spocke  路  3Comments

nylen picture nylen  路  3Comments

aduth picture aduth  路  3Comments