[haiku-commits] haiku: hrev49304 - src/kits/tracker

  • From: janus2@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 16 Jun 2015 23:36:25 +0200 (CEST)

hrev49304 adds 1 changeset to branch 'master'
old head: 032d5b4b5934a9c6ffd2da03978157ce6f43fb21
new head: 38b2eae6db31e23440a40f48d7d8da7bcb791825
overview:
http://cgit.haiku-os.org/haiku/log/?qt=range&q=38b2eae6db31+%5E032d5b4b5934

----------------------------------------------------------------------------

38b2eae6db31: Tracker: fix selection glitch with some fonts

* This problem was present for the fonts with total height
greater than 19 and smaller than 20.
* Reduce distance between row with big fonts.
* Fixes #11615.

[ Janus <janus2@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision: hrev49304
Commit: 38b2eae6db31e23440a40f48d7d8da7bcb791825
URL: http://cgit.haiku-os.org/haiku/commit/?id=38b2eae6db31
Author: Janus <janus2@xxxxxxxxx>
Date: Mon Jun 15 02:03:28 2015 UTC

Ticket: https://dev.haiku-os.org/ticket/11615

----------------------------------------------------------------------------

1 file changed, 1 insertion(+), 1 deletion(-)
src/kits/tracker/PoseView.cpp | 2 +-

----------------------------------------------------------------------------

diff --git a/src/kits/tracker/PoseView.cpp b/src/kits/tracker/PoseView.cpp
index e60e882..f8192f9 100644
--- a/src/kits/tracker/PoseView.cpp
+++ b/src/kits/tracker/PoseView.cpp
@@ -346,7 +346,7 @@ BPoseView::InitCommon()
PinPointToValidRange(origin);

// init things related to laying out items
- fListElemHeight = ceilf(sFontHeight < 20 ? 20 : sFontHeight + 6);
+ fListElemHeight = ceilf(ceilf(sFontHeight) < 20 ? 20 : sFontHeight + 4);
SetIconPoseHeight();
GetLayoutInfo(ViewMode(), &fGrid, &fOffset);
ResetPosePlacementHint();


Other related posts:

  • » [haiku-commits] haiku: hrev49304 - src/kits/tracker - janus2