From dd4e6face10a0f9dc1b541663ffff471b14cf7a5 Mon Sep 17 00:00:00 2001 From: "chunmao.guo" Date: Thu, 29 Jun 2023 11:24:35 +0800 Subject: [PATCH] FIX: [STUDIO-3496] DropDown size cause by pre messure for icon size Change-Id: Ifd5ce621e2091c948910448d4e5e21e8bc4c18fc --- src/slic3r/GUI/Widgets/DropDown.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/Widgets/DropDown.cpp b/src/slic3r/GUI/Widgets/DropDown.cpp index fefd77e89..c5f47062f 100644 --- a/src/slic3r/GUI/Widgets/DropDown.cpp +++ b/src/slic3r/GUI/Widgets/DropDown.cpp @@ -89,7 +89,10 @@ void DropDown::SetSelection(int n) n = -1; if (selection == n) return; selection = n; - messureSize(); + if (need_sync) { // for icon Size + messureSize(); + need_sync = true; + } paintNow(); }