You've already forked lazarus-ccr
tvplanit: Fix truncated focus rectangle in bottom row of TVpMonthView
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8765 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -117,13 +117,12 @@ begin
|
|||||||
todayDate := Date();
|
todayDate := Date();
|
||||||
DecodeDate(ADate, Y, M, D);
|
DecodeDate(ADate, Y, M, D);
|
||||||
|
|
||||||
if (ACol = 6) then begin
|
WriteLn(ATextRect.Top, ', ', ATextRect.Bottom, ', ', RealBottom);
|
||||||
|
|
||||||
|
if (ACol = 6) then
|
||||||
ATextRect.Right := ATextRect.Right + 8;
|
ATextRect.Right := ATextRect.Right + 8;
|
||||||
tmpRect := ATextRect;
|
|
||||||
if ATextRect.Bottom > RealBottom then
|
tmpRect := ATextRect;
|
||||||
tmpRect.Bottom := RealBottom;
|
|
||||||
end else
|
|
||||||
tmpRect := ATextRect;
|
|
||||||
if ARow = 0 then
|
if ARow = 0 then
|
||||||
inc(tmpRect.Top);
|
inc(tmpRect.Top);
|
||||||
|
|
||||||
@ -245,6 +244,8 @@ begin
|
|||||||
// then all the way to the left
|
// then all the way to the left
|
||||||
ATextRect.TopLeft := Point(RealLeft + 1, ATextRect.Bottom + 1);
|
ATextRect.TopLeft := Point(RealLeft + 1, ATextRect.Bottom + 1);
|
||||||
ATextRect.BottomRight := Point(ATextRect.Left + mvColWidth, ATextRect.Top + mvRowHeight);
|
ATextRect.BottomRight := Point(ATextRect.Left + mvColWidth, ATextRect.Top + mvRowHeight);
|
||||||
|
if (ATextRect.Bottom > RealBottom - 1) then
|
||||||
|
ATextRect.Bottom := RealBottom - 1;
|
||||||
end else begin
|
end else begin
|
||||||
// Slide rect one column to the right
|
// Slide rect one column to the right
|
||||||
ATextRect.Left := ATextRect.Right + 1;
|
ATextRect.Left := ATextRect.Right + 1;
|
||||||
|
Reference in New Issue
Block a user