FIX: Button text render pos on macOS

Change-Id: Icaa8cb95d81b3f906507dc74a3fcffc77a535fdb
Jira: STUDIO-8026
This commit is contained in:
chunmao.guo 2024-09-24 11:38:39 +08:00 committed by lane.wei
parent f30c7d3355
commit c1e4be1652
1 changed files with 1 additions and 1 deletions

View File

@ -270,7 +270,7 @@ void Button::render(wxDC& dc)
dc.DrawRectangle(pt, textSize.GetSize());
#endif
#ifdef __WXOSX__
pt.y -= textSize.x / 2;
pt.y -= this->textSize.x / 2;
#endif
dc.DrawText(text, pt);
}