Wrong location of TAdvSmoothDatePicker on second monitor

Hello,

I noticed that the TAdvSmoothDatePicker is placed wrong when the App-Window is on a secondary monitor, which is located right to the main monitor.
The placing algorithm seems to think there is no space left of the location so the DatePicker is always right aligned.

Here is what I mean (just placing the control in an app, no additional code)

Clicking TAdvSmoothDatePicker on the main monitor.


(the popup is nicely left aligned to the control)


Clicking TAdvSmoothDatePicker on the secondary monitor.


(the popup is always right aligned to the control)


It is more noticable, when the Picker is invisible but located at a Button and the Picker is opened on TButton-Click via the Popup function.

void __fastcall TForm2::showKalenderClick(TObject* Sender)
{

  TWinControl* c = (TWinControl*)Sender;

  // Picker einbetten
  TAdvSmoothDatePicker* picker = new TAdvSmoothDatePicker(this);
  picker->Visible = false;
  picker->Left = c->Left;
  picker->Top = c->Top;
  picker->Width = 1;
  picker->Height = 1;
  picker->Parent = c->Parent;

  picker->DropDown();
}

Thanks!

I have tested this but could not reproduce this on a dual monitor system.
Is this the latest version of the TMS VCL UI Pack you're using?

Yes.
Well, I just updated from 13.5.5.0 to 13.5.7.0
The behavior is the same.

Just created an VCL App, threw an TAdvSmoothDatePicker in there and tested the Picker on both monitors.

vs

I use the C++Builder 10.2 Update 3
VCL 13.5.7.0

I think the difference between your situation depended on where the secondary monitor is located from the primary monitor.
We have applied in general improvements for positioning the dropdown on multimonitor situation and different DPIs. Next update will have these improvements.