feathersui / feathersui-starling

User interface components for Starling Framework and Adobe AIR
https://feathersui.com/learn/as3-starling/
Other
915 stars 386 forks source link

Recursive loop in AnchorLayout using #1750

Closed teotigraphix closed 6 years ago

teotigraphix commented 6 years ago

Feathers 3.4 - SDK, AIR 27

I know you hate me for this but it's really hard for me to make simple test cases to reproduce this but I will report since it happened.

recurse

And it's recursing here;

recurse2

<f:LayoutGroup id="control">

    <f:layout>
        <f:AnchorLayout/>
    </f:layout>

    <f:layoutData>
        <f:VerticalLayoutData percentWidth="100"
                              percentHeight="100"/>
    </f:layoutData>

    <f:ImageLoader id="$dpbFeatureImage"
                   scaleContent="true"
                   maintainAspectRatio="true">
        <f:layoutData>
            <f:AnchorLayoutData verticalCenter="0"
                                horizontalCenter="0"
                                percentWidth="100"
                                bottom="8"
                                bottomAnchorDisplayObject="{$dpbFeatureImage}"/>
        </f:layoutData>
    </f:ImageLoader>

    <f:ImageLoader id="$dpbLogoImage">
        <f:layoutData>
            <f:AnchorLayoutData/>
        </f:layoutData>
    </f:ImageLoader>

    <f:Label id="$mainStatusLabel"
             wordWrap="true"
             padding="16"
             styleName="{XFontStyles.LIGHT_H3}">
        <f:layoutData>
            <f:AnchorLayoutData percentWidth="100"
                                bottom="0"/>
        </f:layoutData>
    </f:Label>

</f:LayoutGroup>
joshtynjala commented 6 years ago
<f:ImageLoader id="$dpbFeatureImage"
               scaleContent="true"
               maintainAspectRatio="true">
    <f:layoutData>
        <f:AnchorLayoutData verticalCenter="0"
                            horizontalCenter="0"
                            percentWidth="100"
                            bottom="8"
                            bottomAnchorDisplayObject="{$dpbFeatureImage}"/>
    </f:layoutData>
</f:ImageLoader>

$dpbFeatureImage is anchored to itself. I assume that you meant to set bottomAnchorDisplayObject to a different object. 😄

teotigraphix commented 6 years ago

OMG, that damn copy paste!!!!!!