Respect "Padding.Right"

This commit is contained in:
Jaex 2022-07-31 15:57:09 +03:00
parent 8bf0bd4d95
commit 459775e988

View file

@ -64,7 +64,7 @@ protected override void OnPaint(PaintEventArgs pevent)
if (Menu != null)
{
int arrowX = ClientRectangle.Width - 14;
int arrowX = ClientRectangle.Width - Padding.Right - 14;
int arrowY = (ClientRectangle.Height / 2) - 1;
Color color = Enabled ? ForeColor : SystemColors.ControlDark;