From fb84d534cc1c0bc4e82a86f95b3e31fb94b2bcf1 Mon Sep 17 00:00:00 2001 From: Nimetu Date: Fri, 18 Dec 2015 21:23:18 +0200 Subject: [PATCH] Fixed: Incorrect vertical spacing between block style elements --- code/nel/src/gui/group_html.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/code/nel/src/gui/group_html.cpp b/code/nel/src/gui/group_html.cpp index 8ca74d6a4..0396051ac 100644 --- a/code/nel/src/gui/group_html.cpp +++ b/code/nel/src/gui/group_html.cpp @@ -4154,9 +4154,7 @@ namespace NLGUI group->setSizeRef(CInterfaceElement::width); // Compute begin space between paragraph and tables - // * If first in group, no begin space - // * If behind a paragraph, take the biggest begin space between the previous paragraph and current one. // Pointer on the current paragraph (can be a table too) CGroupParagraph *p = dynamic_cast(group); @@ -4178,11 +4176,6 @@ namespace NLGUI group->setParentPos(groups.back()); group->setPosRef(Hotspot_TL); group->setParentPosRef(Hotspot_BL); - - // Begin space for previous paragraph - CGroupParagraph *previous = dynamic_cast(groups.back()); - if (previous) - beginSpace = std::max(beginSpace, previous->getTopSpace()); } // Set the begin space