From 6b9353b4a32711c9f03364aa58de41124fbad797 Mon Sep 17 00:00:00 2001 From: John Scipione Date: Wed, 4 Jul 2018 13:52:50 -0700 Subject: [PATCH] Tracker: Revert to previous CalcRectCommon bottom calc ... in list mode. Fixes #12997 This bug was introduced in hrev50528 along with new 32x32 icon size in list mode. I'm not sure what I was thinking on this particular line but reverting it seems to fix the problem and logically the original code makes sense. --- src/kits/tracker/TextWidget.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/kits/tracker/TextWidget.cpp b/src/kits/tracker/TextWidget.cpp index 53a8e9bd90..661474707e 100644 --- a/src/kits/tracker/TextWidget.cpp +++ b/src/kits/tracker/TextWidget.cpp @@ -175,8 +175,7 @@ BTextWidget::CalcRectCommon(BPoint poseLoc, const BColumn* column, break; } - result.bottom = poseLoc.y - + roundf((view->ListElemHeight() + view->FontHeight()) / 2); + result.bottom = poseLoc.y + (view->ListElemHeight() - 1); } else { if (view->ViewMode() == kIconMode) { // large/scaled icon mode