If three or more columns in a View are displayed in one column separated by <br>s, then the indentation does not work for the third field. For instance:
Field 1<br>
Field 2<br>
Field 3
To fix this, the code that does the indentation can be changed ("draggableviews_theme.inc" line 193) from:
$vars['rows'][$i][$key] = $indentation . $vars['rows'][$i][$key] . drupal_render($hidden_nid);
to
$vars['rows'][$i][$key] = '<div style="float:left">' . $vars['rows'][$i][$key] . '</div>';
$vars['rows'][$i][$key] = $indentation . $vars['rows'][$i][$key] . drupal_render($hidden_nid);
This solves the problem as the entire HTML snippet is now encapsulated in a <div> and aligns correctly with the indentation.
Field 1<br>
Field 2<br>
Field 3
However, I am not sure about putting style information directly into the code like this. What is the Drupal way? I would gladly submit a patch if I knew the answer.
Cheers,
Kevin
Comments
Comment #1
istryker commented6.x in now unsupport. Closing this issue.
If this issue happens in 7.x and/or 8.x please create a new issue and reference this one