Commit 2c4f62ad authored by MustangGB's avatar MustangGB Committed by DamienMcKenna

Issue #1773798 by DamienMcKenna, MustangGB, danwonac, imclean, kari.nies, NaX,...

Issue #1773798 by DamienMcKenna, MustangGB, danwonac, imclean, kari.nies, NaX, clfer, DaPooch, Chris Matthews, gianfrasoft: For the grid format "Fill up single line" does not work when using vertical alignment for a single row.
parent 610f570e
......@@ -758,8 +758,15 @@ function template_preprocess_views_view_grid(&$vars) {
$remainders--;
}
}
for ($i = 0; $i < count($rows[0]); $i++) {
// This should be string so that's okay :)
// Fill out the row with empty values, if needed.
if (!empty($handler->options['fill_single_line'])) {
$column_fill = $columns;
}
else {
$column_fill = count($rows[0]);
}
for ($i = 0; $i < $column_fill; $i++) {
if (!isset($rows[count($rows) - 1][$i])) {
$rows[count($rows) - 1][$i] = '';
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment