FIX: ams control display bug

jira: none
Change-Id: I72c5977ff4246c19f4bf5ce7e20f797c0efe9e9a
(cherry picked from commit 7f43d427c30779f8e992a9893eed1ae57ae12446)
This commit is contained in:
zhimin.zeng
2024-12-05 14:29:52 +08:00
committed by Noisyfox
parent 508ee2760d
commit 27e30373c8
2 changed files with 16 additions and 2 deletions

View File

@@ -1719,6 +1719,14 @@ void AMSPreview::Update(AMSinfo amsinfo)
{
m_amsinfo = amsinfo;
m_ams_item_type = amsinfo.ams_type;
if (m_ams_item_type == AMSModel::GENERIC_AMS || m_ams_item_type == AMSModel::AMS_LITE || m_ams_item_type == AMSModel::N3F_AMS) {
SetMinSize(AMS_ITEM_SIZE);
SetMaxSize(AMS_ITEM_SIZE);
} else {
SetMinSize(AMS_ITEM_SIZE);
SetMaxSize(AMS_ITEM_SIZE);
}
}
void AMSPreview::create(wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size)