FIX: [STUDIO-3496] DropDown size cause by pre messure for icon size

Change-Id: Ifd5ce621e2091c948910448d4e5e21e8bc4c18fc
This commit is contained in:
chunmao.guo
2023-06-29 11:24:35 +08:00
committed by Lane.Wei
parent 9a164ec6db
commit bb1066427b

View File

@@ -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();
}