|
@@ -202,6 +202,7 @@ const MinDelayReopen = 500/(1000*60*60*24);
|
|
|
var
|
|
var
|
|
|
p: TPoint;
|
|
p: TPoint;
|
|
|
f: TCustomForm;
|
|
f: TCustomForm;
|
|
|
|
|
+ monitor: TMonitor;
|
|
|
begin
|
|
begin
|
|
|
CreateDropDown;
|
|
CreateDropDown;
|
|
|
|
|
|
|
@@ -239,7 +240,8 @@ begin
|
|
|
FForm.Top := p.Y;
|
|
FForm.Top := p.Y;
|
|
|
FForm.Color := FDropDownBorderColor;
|
|
FForm.Color := FDropDownBorderColor;
|
|
|
AdaptDropDownContainerSize;
|
|
AdaptDropDownContainerSize;
|
|
|
- if FForm.Top + FForm.Height > Screen.WorkAreaTop + Screen.WorkAreaHeight then
|
|
|
|
|
|
|
+ monitor := Screen.MonitorFromPoint(p);
|
|
|
|
|
+ if FForm.Top + FForm.Height > monitor.WorkareaRect.Bottom then
|
|
|
FForm.Top := FForm.Top - FForm.Height - Self.Height;
|
|
FForm.Top := FForm.Top - FForm.Height - Self.Height;
|
|
|
if Assigned(FOnDropDown) then FOnDropDown(self);
|
|
if Assigned(FOnDropDown) then FOnDropDown(self);
|
|
|
FQueryDropDownHide := false;
|
|
FQueryDropDownHide := false;
|