FIX: the select machine suit DPI
jira: [STUDIO-10067] Change-Id: Idee141746b73764c9bb80746358ec65f1147cc31
This commit is contained in:
parent
36deba9d13
commit
fe2ae4ab9b
|
@ -46,7 +46,12 @@ wxDEFINE_EVENT(EVT_CLEAR_IPADDRESS, wxCommandEvent);
|
|||
|
||||
MachineObjectPanel::MachineObjectPanel(wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size, long style, const wxString &name)
|
||||
{
|
||||
wxPanel::Create(parent, id, pos, SELECT_MACHINE_ITEM_SIZE, style, name);
|
||||
wxPanel::Create(parent, id, pos, wxDefaultSize, style, name);
|
||||
|
||||
SetSize(SELECT_MACHINE_ITEM_SIZE);
|
||||
SetMinSize(SELECT_MACHINE_ITEM_SIZE);
|
||||
SetMaxSize(SELECT_MACHINE_ITEM_SIZE);
|
||||
|
||||
Bind(wxEVT_PAINT, &MachineObjectPanel::OnPaint, this);
|
||||
|
||||
SetBackgroundColour(StateColor::darkModeColorFor(*wxWHITE));
|
||||
|
@ -959,9 +964,9 @@ void EditDevNameDialog::on_edit_name(wxCommandEvent &e)
|
|||
}
|
||||
}
|
||||
|
||||
PinCodePanel::PinCodePanel(wxWindow* parent, int type, wxWindowID winid /*= wxID_ANY*/, const wxPoint& pos /*= wxDefaultPosition*/, const wxSize& size /*= wxDefaultSize*/)
|
||||
PinCodePanel::PinCodePanel(wxWindow* parent, int type, wxWindowID winid /*= wxID_ANY*/, const wxPoint& pos /*= wxDefaultPosition*/, const wxSize& size /*= wxDefaultSize*/)
|
||||
{
|
||||
wxPanel::Create(parent, winid, pos, SELECT_MACHINE_ITEM_SIZE);
|
||||
wxPanel::Create(parent, winid, pos);
|
||||
Bind(wxEVT_PAINT, &PinCodePanel::OnPaint, this);
|
||||
SetSize(SELECT_MACHINE_ITEM_SIZE);
|
||||
SetMaxSize(SELECT_MACHINE_ITEM_SIZE);
|
||||
|
|
Loading…
Reference in New Issue