tvplanit: Avoid header text of week view to overlap with spin buttons.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4703 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2016-06-09 22:52:55 +00:00
parent abcfb2a7ac
commit 3e1a370a4b

View File

@ -126,7 +126,7 @@ type
FDateLabelFormat : string;
FDayHeadAttributes : TVpDayHeadAttr;
FDrawingStyle : TVpDrawingStyle;
FaActiveEvent : TVpEvent;
FaActiveEvent : TVpEvent;
FHeadAttr : TVpWvHeadAttributes;
FEventFont : TFont;
FLineColor : TColor;
@ -1075,7 +1075,7 @@ var
RenderCanvas.TextWidth (HeadStr)) div 2,
HeadRect.Top)
else
HeadTextRect.TopLeft := Point (RealLeft + 30 + TextMargin * 2,
HeadTextRect.TopLeft := Point (RealLeft + Trunc(wvHeaderHeight * 0.8) * 2 + TextMargin * 2,
HeadRect.Top);
HeadTextRect.BottomRight := HeadRect.BottomRight;
{ Fix Header String }