Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: Cabal on June 24, 2015, 12:06:42 PM
-
Hi,
We ran into an issue with SD/HD/UD texture sets and setting a 9-slice sprite to its minimum size.
We tracked it down to the minHeight function in UISprite.cs.
Unlike minWidth, which works correctly, the minHeight function does not apply the pixel size to the padding.
To fix it locally, we changed the function to match what minWidth does:
(around line 188)
float ps = pixelSize;
...
if (sp != null) min += Mathf.RoundToInt(ps * (sp.paddingTop + sp.paddingBottom));
Stephane
-
Thanks!