FIX: DropDown render y position

Change-Id: Ic8962de615f36477c8a7ac62cee4261cd9c259e5
Jira: STUDIO-12904
(cherry picked from commit 725fc1dec273ac848c166896558104b9b8c2bde3)
This commit is contained in:
chunmao.guo 2025-07-08 19:03:55 +08:00 committed by Noisyfox
parent 09c5768484
commit 7aca9f9535

View file

@ -405,7 +405,7 @@ void DropDown::render(wxDC &dc)
if (group.IsEmpty() && !item.group.IsEmpty()) {
auto szBmp = arrow_bitmap.GetBmpSize();
pt.x = rcContent.GetRight() - szBmp.x - 5;
pt.y = rcContent.y += (rcContent.height - szBmp.y) / 2;
pt.y = rcContent.y + (rcContent.height - szBmp.y) / 2;
dc.DrawBitmap(arrow_bitmap.bmp(), pt);
}
}