From 440dd1a073315b45318749eea317316fa087aa2a Mon Sep 17 00:00:00 2001 From: Dimitris Panokostas Date: Sat, 16 May 2020 00:53:16 +0200 Subject: [PATCH] moved dropdown text height adjustment --- external/libguisan/src/widgets/dropdown.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/external/libguisan/src/widgets/dropdown.cpp b/external/libguisan/src/widgets/dropdown.cpp index b870d120..50f90eed 100644 --- a/external/libguisan/src/widgets/dropdown.cpp +++ b/external/libguisan/src/widgets/dropdown.cpp @@ -437,9 +437,9 @@ namespace gcn throw GCN_EXCEPTION("List box has been deleted."); const auto listBoxHeight = mListBox->getHeight(); - const auto h2 = getFont()->getHeight(); + const auto h2 = getFont()->getHeight() + 2; - setHeight(h2 + 2); + setHeight(h2); // The addition/subtraction of 2 compensates for the separation lines // separating the selected element view and the scroll area.