You've already forked lazarus-ccr
tvplanit: Fix positioning of inplace-editor of all-day event in DayView.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4914 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -1907,12 +1907,20 @@ begin
|
||||
dvInPlaceEditor.Parent := self;
|
||||
dvInPlaceEditor.OnExit := EndEdit;
|
||||
end;
|
||||
dvInPlaceEditor.SetBounds(
|
||||
dvActiveIconRec.Right + TextMargin,
|
||||
dvActiveEventRec.Top + TextMargin,
|
||||
dvActiveEventRec.Right - dvActiveIconRec.Right - TextMargin,
|
||||
dvActiveEventRec.Bottom - dvActiveEventRec.Top - TextMargin
|
||||
);
|
||||
if FActiveEvent.AllDayEvent then
|
||||
dvInplaceEditor.SetBounds(
|
||||
dvActiveEventRec.Left + 2 * (TextMargin div 2), // this way it is calculated in DrawAllDayEvents
|
||||
dvActiveEventRec.Top + 2 * (TextMargin div 2),
|
||||
WidthOf(dvActiveEventRec) - TextMargin div 2,
|
||||
HeightOf(dvActiveEventRec)
|
||||
)
|
||||
else
|
||||
dvInPlaceEditor.SetBounds(
|
||||
dvActiveIconRec.Right + TextMargin,
|
||||
dvActiveEventRec.Top + TextMargin,
|
||||
dvActiveEventRec.Right - dvActiveIconRec.Right - TextMargin,
|
||||
dvActiveEventRec.Bottom - dvActiveEventRec.Top - TextMargin
|
||||
);
|
||||
dvInPlaceEditor.Show;
|
||||
dvInPlaceEditor.Text := FActiveEvent.Description;
|
||||
Invalidate;
|
||||
|
Reference in New Issue
Block a user