AdvPanel CanSize=true, but SizeMoveGrip is at the opposite site

When I have CanSize=true and the panel caption.position=cpLeft or cpRight,, then the SizeGrip is in the wrong position (Caption.position = cpRight is on the left instead ont the right and vice versa).

I thing the issue is in the procedure Paint - line about 3228:

//STAPRO RG 20230601 - SizeMoveGrip is at wrong site
// if FCaption.Position = cpRight then
if FCaption.Position = cpLeft then
//\RG

and in procedure WMNCHitTest - line about 4253

//STAPRO RG 20230601 - SizeMoveGrip is at wrong site
// if (FCaption.Position = cpRight) then
if FCaption.Position = cpLeft then
//\RG

and maybe next is also better - line about 4266

//STAPRO RG 20230601 - movegrip is more sensitive
// else if not FFixedWidth and (pt.x < GetSystemMetrics(SM_CXSIZEFRAME) + 2) then
else if not FFixedWidth and (pt.x < GetSystemMetrics(SM_CXSIZEFRAME)) then
//\STAPRO RG 20230601

and the comment - line 4272 else // (FCaption.Position in [cpTop, cpRight]

and maybe next is also better - line about 4285

//STAPRO RG 20230601 - movegrip is more sensitive
// else if not FFixedWidth and (pt.x > width - GetSystemMetrics(SM_CXSIZEFRAME)) then
else if not FFixedWidth and (pt.x > width - GetSystemMetrics(SM_CXSIZEFRAME)-2) then
//\STAPRO RG 20230601

This is by design to ensure the resize triangle is not overlapping the caption and also because it is natural the panel stretches going further from the caption rather than moving the caption.