1
NGUI 3 Support / Bugfix for wrong UIPopupList drop-down colliders
« on: June 26, 2014, 02:43:07 AM »
Hello, there.
With NGUI 3.6.5, UIPopupList may generate wrong sized colliders for drop-down list items.
Even though UIPopupList.OnClick() works well for calculating size of collider,
NGUITools.AddWidgetCollider set autoResizeBoxCollider true and makes size fit with contents of item. (padding size missed!)
I've just fixed this bug as following.
Please consider it for next release.
With NGUI 3.6.5, UIPopupList may generate wrong sized colliders for drop-down list items.
Even though UIPopupList.OnClick() works well for calculating size of collider,
NGUITools.AddWidgetCollider set autoResizeBoxCollider true and makes size fit with contents of item. (padding size missed!)
I've just fixed this bug as following.
Please consider it for next release.
- --- UIPopupList.cs (revision 4859)
- +++ UIPopupList.cs (revision 4860)
- @@ -767,7 +767,9 @@
- for (int i = 0, imax = labels.Count; i < imax; ++i)
- {
- UILabel lbl = labels[i];
- - NGUITools.AddWidgetCollider(lbl.gameObject);
- + NGUITools.AddWidgetCollider(lbl.gameObject);
- + lbl.autoResizeBoxCollider = false;
- +
