Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - veblush

Pages: [1]
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.

  1. --- UIPopupList.cs      (revision 4859)
  2. +++ UIPopupList.cs      (revision 4860)
  3. @@ -767,7 +767,9 @@
  4.                         for (int i = 0, imax = labels.Count; i < imax; ++i)
  5.                         {
  6.                                 UILabel lbl = labels[i];
  7. -                               NGUITools.AddWidgetCollider(lbl.gameObject);
  8. +                               NGUITools.AddWidgetCollider(lbl.gameObject);
  9. +                               lbl.autoResizeBoxCollider = false;
  10. +
  11.  

Pages: [1]