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 b50838b155
commit dd4e6face1
1 changed files with 4 additions and 1 deletions

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