From 2b4c88495f8d6b62f160ee275147954fc7096e1f Mon Sep 17 00:00:00 2001 From: Burak Civan Date: Mon, 14 Nov 2022 12:09:09 +0300 Subject: [PATCH] scenario edited --- public/akaunting-js/generalAction.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/akaunting-js/generalAction.js b/public/akaunting-js/generalAction.js index ccfb0a75a..dd257cf11 100644 --- a/public/akaunting-js/generalAction.js +++ b/public/akaunting-js/generalAction.js @@ -447,7 +447,7 @@ document.querySelectorAll('[data-page-title-first]').forEach((first) => { let title_truncate = first.querySelector('[data-title-truncate]'); if (title_truncate !== null) { - if (first.clientWidth < title_truncate.clientWidth) { + if (first.clientWidth < title_truncate.clientWidth && second.clientHeight > 0) { // added specific width styling for truncate text title_truncate.style.width = first.clientWidth + 'px'; let subtract = title_truncate.clientWidth - 40;