Forum Discussion

neoRiley's avatar
neoRiley
Visitor
9 years ago

RowList and Markup as children of a Layout group - Possible?

I've been trying to show a MarkupGrid node and a RowList node in a LayoutGroup, but only the first item listed in XML shows up.


<LayoutGroup
  id="mainContainer"
  layoutDirection = "vertical"
  horizAlignment = "left"
  vertAlignment = "top"
  itemSpacings = "[0,0]"
  translation="[0,78]"
>

  <MarkupGrid
    id="carousel"
    itemComponentName="UIFeaturedItem"
    itemSize="[1280,500]"
    numRows="1"
    rowHeights="[500]"
    horizFocusAnimationStyle="FixedFocusWrap"
    drawFocusFeedback ="false"
    itemSpacing="[0,0]"
    fixedLayout="false"
  />

  <RowList
    id="collections"
    itemComponentName="UIFeaturedItem"
    itemSize="[1280,300]"
    numRows="9"
    drawFocusFeedback ="true"
    rowFocusAnimationStyle="FixedFocusWrap"
    horizFocusAnimationStyle="fixedFocus"
    showRowLabel="[true]"
    showRowCounter="[false]"
  />
</LayoutGroup>


1.  Is it possible to do this?

1 Reply

  • Solved:

    When I had initially setup the LayoutGroup, I'd set the layoutDirection value to "vertical", when it should be "vert", as per the docs.  The node I couldn't see, which was RowList, was way off screen horizontally next to the MarkupGrid since "horiz" is the default value for layoutDirection.