FIX: the text does not align mid

jira: [STUDIO-9987]
Change-Id: Ibb2f7c3982414f11538230385b12708295b4f21c
This commit is contained in:
xin.zhang 2025-01-18 10:42:10 +08:00 committed by lane.wei
parent a3a54934e0
commit 36322e7cdb
1 changed files with 2 additions and 2 deletions

View File

@ -263,7 +263,7 @@ void SwitchBoard::doRender(wxDC &dc)
} else {
dc.SetTextForeground(0x333333);
}
dc.DrawText(rightLabel, wxPoint((GetSize().x / 2 - left_txt_size.x) / 2 + GetSize().x / 2, (GetSize().y - right_txt_size.y) / 2));
dc.DrawText(rightLabel, wxPoint((GetSize().x / 2 - right_txt_size.x) / 2 + GetSize().x / 2, (GetSize().y - right_txt_size.y) / 2));
}
@ -311,7 +311,7 @@ void SwitchBoard::Enable()
void SwitchBoard::Disable()
{
if (is_enable == false)
{
{
return;
}