From 25f61751aafa9f30a26cdf10a212d14103ebb810 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Tue, 2 Sep 2014 08:53:01 +0000 Subject: Clist_modern: Naive workaround for drawing group counts with ellipsis when there is still space git-svn-id: http://svn.miranda-ng.org/main/trunk@10356 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Clist_modern/src/modern_clcpaint.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins') diff --git a/plugins/Clist_modern/src/modern_clcpaint.cpp b/plugins/Clist_modern/src/modern_clcpaint.cpp index 168ef2b9fa..689dcca7bc 100644 --- a/plugins/Clist_modern/src/modern_clcpaint.cpp +++ b/plugins/Clist_modern/src/modern_clcpaint.cpp @@ -2533,6 +2533,8 @@ void CLCPaint::_CalcItemsPos( HWND hwnd, HDC hdcMem, ClcData *dat, ClcContact *D counts_size.cx = counts_rc.right - counts_rc.left; counts_size.cy = min( counts_rc.bottom - counts_rc.top, free_height ); + counts_size.cx += 1; // FIXME: This is workaround for sometimes stripped user counts by one pixel, it somehow wrongly counts width of space or counts text (used wrong font?) + text_width = free_row_rc.right - free_row_rc.left - space_size.cx - counts_size.cx; if ( text_width > 4 ) -- cgit v1.2.3