FIX: [STUDIO-3496] DropDown size cause by pre messure for icon size
Change-Id: Ifd5ce621e2091c948910448d4e5e21e8bc4c18fc
This commit is contained in:
parent
b50838b155
commit
dd4e6face1
|
@ -89,7 +89,10 @@ void DropDown::SetSelection(int n)
|
||||||
n = -1;
|
n = -1;
|
||||||
if (selection == n) return;
|
if (selection == n) return;
|
||||||
selection = n;
|
selection = n;
|
||||||
messureSize();
|
if (need_sync) { // for icon Size
|
||||||
|
messureSize();
|
||||||
|
need_sync = true;
|
||||||
|
}
|
||||||
paintNow();
|
paintNow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue