Skip to content

Commit

Permalink
BUGFIX: Fixed Button-Group vertical alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
t3solution committed Aug 5, 2020
1 parent 1c50a72 commit 9ec02a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Classes/DataProcessing/BootstrapProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,12 @@ public function process(ContentObjectRenderer $cObj, array $contentObjectConfigu
* Button group
*/
if ( $processedData['data']['tx_gridelements_backend_layout'] == 'button_group' ) {
$processedData['buttonGroupClass'] = $flexconf['align'] ?: '';
$processedData['class'] .= $flexconf['vertical'] ? ' btn-group-vertical' : ' btn-group';
$processedData['buttonGroupClass'] = ' '.$flexconf['align'] ?: '';
if ( $flexconf['fixedPosition'] ) {
$processedData['buttonGroupClass'] .= ' d-none fixedGroupButton fixedPosition fixedPosition-'.$flexconf['fixedPosition'];
$processedData['class'] .= $flexconf['rotate'] ? ' rotateFixedPosition rotate-'.$flexconf['rotate'] : '';
$processedData['class'] .= $flexconf['vertical'] ? ' rotateFixedPosition rotate-'.$flexconf['rotate'] : '';
}
}

Expand Down

0 comments on commit 9ec02a8

Please sign in to comment.