From 36120c65667c585edd14e58551da5fb2f47b5409 Mon Sep 17 00:00:00 2001
From: "michael.danielczok" <michael@pcsg.de>
Date: Fri, 24 Feb 2023 17:22:59 +0100
Subject: [PATCH] fix: Calculation of the nav tabs items position fixed [Tabs]

---
 locale.xml                     |  4 ++--
 src/QUI/Menu/Controls/Tabs.css |  1 +
 src/QUI/Menu/Controls/Tabs.php | 10 +---------
 3 files changed, 4 insertions(+), 11 deletions(-)

diff --git a/locale.xml b/locale.xml
index 3315617..94cb162 100644
--- a/locale.xml
+++ b/locale.xml
@@ -352,8 +352,8 @@
             <en><![CDATA[Break nav title]]></en>
         </locale>
         <locale name="control.tabs.navWrapText.wrap">
-            <de><![CDATA[Standard: der Titel wird umgebrochen, wenn er zu lang wird.]]></de>
-            <en><![CDATA[Default: the title will wrap if it becomes too long.]]></en>
+            <de><![CDATA[Standard: der Titel umbrechen]]></de>
+            <en><![CDATA[Default: wrap the title]]></en>
         </locale>
         <locale name="control.tabs.navWrapText.noWrap">
             <de><![CDATA[Der Titel wird nicht umgebrochen]]></de>
diff --git a/src/QUI/Menu/Controls/Tabs.css b/src/QUI/Menu/Controls/Tabs.css
index 047f62e..9b29a1f 100644
--- a/src/QUI/Menu/Controls/Tabs.css
+++ b/src/QUI/Menu/Controls/Tabs.css
@@ -17,6 +17,7 @@
     display: flex;
     flex-wrap: nowrap;
     overflow: hidden;
+    position: relative;
 }
 
 @media screen and (max-width: 767px) {
diff --git a/src/QUI/Menu/Controls/Tabs.php b/src/QUI/Menu/Controls/Tabs.php
index 067d915..a1bd84d 100644
--- a/src/QUI/Menu/Controls/Tabs.php
+++ b/src/QUI/Menu/Controls/Tabs.php
@@ -72,14 +72,6 @@ public function getBody()
             array_push($enabledEntries, $entry);
         }
 
-//        foreach ($entries as $entry) {
-//            array_push($enabledEntries, $entry);
-//        }
-//
-//        foreach ($entries as $entry) {
-//            array_push($enabledEntries, $entry);
-//        }
-
         $active = 1;
 
         if ($this->getAttribute('activeEntry') && $this->getAttribute('activeEntry') > 0) {
@@ -114,7 +106,7 @@ public function getBody()
             $navFillSpace = 'navFillSpace';
         }
 
-        if ($this->getAttribute('navWrapText') === 'noBreak') {
+        if ($this->getAttribute('navWrapText') === 'noWrap') {
             $navWrapText = 'navText__noWrap';
         }
 
-- 
GitLab