FIX: Button text render pos on macOS
Change-Id: Icaa8cb95d81b3f906507dc74a3fcffc77a535fdb Jira: STUDIO-8026
This commit is contained in:
parent
f30c7d3355
commit
c1e4be1652
|
@ -270,7 +270,7 @@ void Button::render(wxDC& dc)
|
||||||
dc.DrawRectangle(pt, textSize.GetSize());
|
dc.DrawRectangle(pt, textSize.GetSize());
|
||||||
#endif
|
#endif
|
||||||
#ifdef __WXOSX__
|
#ifdef __WXOSX__
|
||||||
pt.y -= textSize.x / 2;
|
pt.y -= this->textSize.x / 2;
|
||||||
#endif
|
#endif
|
||||||
dc.DrawText(text, pt);
|
dc.DrawText(text, pt);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue