FIX: [STUDIO-169] handle text baseline on Mac

Change-Id: I13bde2dcd6d19107f5fe6fb66aa35d2aa55ab03d
This commit is contained in:
tao.jin
2023-03-10 10:11:56 +08:00
committed by Lane.Wei
parent cc994a3492
commit 0f152c635c
2 changed files with 24 additions and 7 deletions

View File

@@ -6,7 +6,7 @@
class Button : public StaticBox
{
wxSize textSize;
wxRect textSize;
wxSize minSize; // set by outer
wxSize paddingSize;
ScalableBitmap active_icon;
@@ -30,6 +30,8 @@ public:
void SetLabel(const wxString& label) override;
bool SetFont(const wxFont& font) override;
void SetIcon(const wxString& icon);
void SetInactiveIcon(const wxString& icon);