diff --git a/components/datetimectrls/datetimepicker.pas b/components/datetimectrls/datetimepicker.pas index 8a6e6397b7..c5ac5c0627 100644 --- a/components/datetimectrls/datetimepicker.pas +++ b/components/datetimectrls/datetimepicker.pas @@ -740,10 +740,8 @@ begin if Assigned(DTPickersParentForm) then begin DTPickersParentForm.AddHandlerOnVisibleChanged(@VisibleOfParentChanged); DTPickersParentForm.FreeNotification(Self); - PopupParent := DTPickersParentForm; - PopupMode := pmExplicit; - end else - PopupMode := pmAuto; + end; + PopupMode := pmAuto; P := Point(0, 0);