FIX: UI display problem of filament map dialog

jira: 8467
Change-Id: I4bf3aa8d0b743a910362def4fc565e9001d79c53
(cherry picked from commit ea5137d6187e151586cc78f424a3873870fe0a33)
This commit is contained in:
zhimin.zeng
2024-10-23 15:19:04 +08:00
committed by Noisyfox
parent 4d3fada5d1
commit 53745a5767

View File

@@ -194,6 +194,7 @@ void DragDropPanel::AddColorBlock(const wxColour &color, int filament_id, bool u
m_grid_item_sizer->Add(panel, 0, wxALIGN_CENTER | wxLEFT, FromDIP(10));
m_filament_blocks.push_back(panel);
if (update_ui) {
m_filament_blocks.front()->Refresh(); // FIX BUG: STUDIO-8467
Layout();
Fit();
GetParent()->Layout();