oddgames / UIToolkit

Single draw call UI solution for Unity with multi resolution support and more.
518 stars 153 forks source link

Bug in ScrollableVerticalLayout #85

Closed acron0 closed 12 years ago

acron0 commented 12 years ago

This is observable if you try to scroll all the way to the bottom of the vertical scroll in the demo scene.

The console spams:

transform.position assign attempt for 'UIToggleButton' is not valid. Input position is { 0.000000, NaN, 1.000000 }. UnityEngine.Transform:set_position(Vector3) UIObject:set_position(Vector3) (at Assets/Plugins/UIToolkit/BaseElements/UIObject.cs:73) UISprite:set_position(Vector3) (at Assets/Plugins/UIToolkit/BaseElements/UISprite.cs:159) IPositionablePositioningExtensions:refreshPosition(IPositionable) (at Assets/Plugins/UIToolkit/Support/IPositionablePositioningExtensions.cs:901) UIAbstractContainer:layoutChildren() (at Assets/Plugins/UIToolkit/BaseElements/UIAbstractContainer.cs:279) UIAbstractTouchableContainer:layoutChildren() (at Assets/Plugins/UIToolkit/BaseElements/UIAbstractTouchableContainer.cs:283)

c__Iterator0:MoveNext() (at Assets/Plugins/UIToolkit/BaseElements/UIAbstractTouchableContainer.cs:97) I'm looking into it
acron0 commented 12 years ago

https://github.com/prime31/UIToolkit/pull/86