From dedcc47e823e50229511955ed01905be67af7395 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sven=20K=C3=A4stle?= <sven.kaestle@gmx.de>
Date: Fri, 20 Jul 2018 17:22:48 +0200
Subject: [PATCH] fix: Use 100% of width when there is no drop down button

---
 gemeinsamforschen/src/main/webapp/assets/js/annotationScript.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gemeinsamforschen/src/main/webapp/assets/js/annotationScript.js b/gemeinsamforschen/src/main/webapp/assets/js/annotationScript.js
index 314be7c0..42bf5fd9 100644
--- a/gemeinsamforschen/src/main/webapp/assets/js/annotationScript.js
+++ b/gemeinsamforschen/src/main/webapp/assets/js/annotationScript.js
@@ -582,9 +582,11 @@ function showAndHideToggleButton() {
         // show drop down button only if text was truncated
         if(cloneWidth > comment.width()) {
             $(this).find('.annotation-header-toggle').show();
+            $(this).find('.annotation-header-data').css('width', 'calc(100% - 40px)');
         }
         else {
             $(this).find('.annotation-header-toggle').hide();
+            $(this).find('.annotation-header-data').css('width', '100%');
         }
 
     })
-- 
GitLab