From a7c20115ee650ece03ac0a0c6d22992df94a2519 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20Sto=CC=88hr?= Date: Thu, 7 May 2020 15:04:14 +0200 Subject: [PATCH] Fix height of second column/position of add metadata button --- Kitodo/src/main/webapp/WEB-INF/resources/js/resize.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Kitodo/src/main/webapp/WEB-INF/resources/js/resize.js b/Kitodo/src/main/webapp/WEB-INF/resources/js/resize.js index 9ae397f7d96..ee386bfdfea 100644 --- a/Kitodo/src/main/webapp/WEB-INF/resources/js/resize.js +++ b/Kitodo/src/main/webapp/WEB-INF/resources/js/resize.js @@ -188,8 +188,7 @@ function setSectionHeight() { firstSectionHeight = wrapper.height() / 2 - HEADING_HEIGHT - (parseInt(secondColumn.css('padding-top')) / 2); secondSection.height(secondSection.height() + firstSectionHeight); } else if (secondSection.hasClass('collapsed')) { - secondSectionHeight = wrapper.height() / 2 - HEADING_HEIGHT - (parseInt(secondColumn.css('padding-top')) / 2) - SEPARATOR_HEIGHT; - firstSection.height(firstSection.height() + secondSectionHeight); + firstSection.height(wrapper.height() - 2 * HEADING_HEIGHT - (parseInt(secondColumn.css('padding-top'))) - SEPARATOR_HEIGHT); } else { firstSection.height(wrapper.height() / 2 - HEADING_HEIGHT - (parseInt(secondColumn.css('padding-top')) / 2)); secondSection.height(wrapper.height() / 2 - HEADING_HEIGHT - (parseInt(secondColumn.css('padding-top')) / 2) - SEPARATOR_HEIGHT);