FIX: the text does not align mid
jira: [STUDIO-9987] Change-Id: Ibb2f7c3982414f11538230385b12708295b4f21c
This commit is contained in:
parent
a3a54934e0
commit
36322e7cdb
|
@ -263,7 +263,7 @@ void SwitchBoard::doRender(wxDC &dc)
|
||||||
} else {
|
} else {
|
||||||
dc.SetTextForeground(0x333333);
|
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()
|
void SwitchBoard::Disable()
|
||||||
{
|
{
|
||||||
if (is_enable == false)
|
if (is_enable == false)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue