1 Reply Latest reply on Jan 2, 2012 9:23 AM by softsafari

    ModuleLoader does not recognize Scroller

    softsafari Level 1

      I have a component that works fine... But when I turn that into a spark module and load it with ModuleLoader, the scroller does not work that is within the module. The module is being loaded inside like this

      <s:Group id="learningCenterGroup"  width="100%" height="100%">

              <s:layout>

                  <s:HorizontalLayout>

                     

                  </s:HorizontalLayout>

              </s:layout>      

                     <s:SkinnableContainer id="myContainer" bottom="10"  skinClass="Skins.SkinLearningCenter" height="100%" width="80%"  >

                            <s:group>           

                                <s:layout>

                                     <s:VerticalLayout gap="30" paddingTop="50" paddingBottom="50" paddingLeft="50" paddingRight="225">                   

                                     </s:VerticalLayout>

                                </s:layout>       

                                 <s:ModuleLoader id="modLoaderCategory_0" />

                              <UserControls:ArticleCategoryContainer  id="categor0" />

                            </s:group>

                </s:SkinnableContainer>

                 <s:SkinnableContainer   id="scoresContainer" bottom="10"  skinClass="Skins.SkinLearningCenter" height="100%"  width="20%"  >

                         <s:Group id="gameGroup">

                             <s:layout>

                               <s:VerticalLayout paddingTop="50"  id="gameGroupVertical">                           

                              </s:VerticalLayout>

                          </s:layout>

                          <s:Label fontSize="15" fontWeight="bold" text="Game Points"/>

      </s:SkinnableContainer>

      </s:Group>

       

      id="modLoaderCategory_0" is just the module of id="categor0".  id="categor0" has a horizontall scroll but the id="modLoaderCategory_0" does not? The module and component look like this with a scroller? Any ideas as to why the scroller does not show?

       

      <s:Scroller id="scroller" verticalScrollPolicy="off">

                  <s:Group   id="category"  >

                      <s:layout>

                          <s:HorizontalLayout gap="40">                       

                          </s:HorizontalLayout>

                      </s:layout>               

                      <s:Label visible="false" includeInLayout="false" id="noArticleMsg" width="100%" height="100%" fontSize="15"

                               fontWeight="bold" text=""/>               

                  </s:Group>

              </s:Scroller>