FIX:textinput behavior on send dialog (STUDIO-2347)

Change-Id: Iec970de7cd2f85b835b64283089c41f52df1cfcc
This commit is contained in:
liz.li 2023-04-03 16:44:31 +08:00 committed by Lane.Wei
parent f0a41b552b
commit a6be285843
3 changed files with 16 additions and 4 deletions

View file

@ -45,7 +45,13 @@ wxDEFINE_EVENT(EVT_SET_FINISH_MAPPING, wxCommandEvent);
SetMaxSize(MATERIAL_ITEM_SIZE);
SetBackgroundColour(*wxWHITE);
Bind(wxEVT_PAINT, &MaterialItem::paintEvent, this);
m_main_panel = new wxPanel(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL);
auto main_sizer = new wxBoxSizer(wxVERTICAL);
main_sizer->Add(m_main_panel, 1, wxEXPAND);
this->SetSizer(main_sizer);
this->Layout();
m_main_panel->Bind(wxEVT_PAINT, &MaterialItem::paintEvent, this);
wxGetApp().UpdateDarkUI(this);
}
@ -89,7 +95,7 @@ void MaterialItem::on_normal()
void MaterialItem::paintEvent(wxPaintEvent &evt)
{
wxPaintDC dc(this);
wxPaintDC dc(m_main_panel);
render(dc);
//PrepareDC(buffdc);