From 9ec02a866b3be7e19f041fbfb645075326907729 Mon Sep 17 00:00:00 2001 From: Helmut Hackbarth Date: Wed, 5 Aug 2020 15:32:50 +0200 Subject: [PATCH] BUGFIX: Fixed Button-Group vertical alignment --- Classes/DataProcessing/BootstrapProcessor.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Classes/DataProcessing/BootstrapProcessor.php b/Classes/DataProcessing/BootstrapProcessor.php index a8bec7f1..33b58634 100644 --- a/Classes/DataProcessing/BootstrapProcessor.php +++ b/Classes/DataProcessing/BootstrapProcessor.php @@ -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'] : ''; } }