Where is my component?

Hi,
i used SectionStack to contain 4 window form,and set the parameter named “visibilityMode” to “multiple”,so i can show two or more window form in the SectionStack window at the same. in fact ,the SectionStatck window is not big enough.
My question is : when i show two or more sectionstackitems at same time in one sectionstackwindow,some of components can’t display. I know it is impossible to show all of them. Who can tell me how to add some scroll bar to each sectionstackitem ,so i can scroll the bar to see the missing compont?

Thank for you time.

Hi Tony,
Three options for getting at content that is too tall for a section stack:

  • just setting overflow:“auto” on the SectionStack itself. This would give you a scrollbar on the section stack as a whole, allowing you to scroll every section into view if they took up more than the available space.

  • if your section contains only a single item, you can set overflow:“auto” on that item (as we do with the HTMLFlow in the Expand / Collapse sections example.

  • if you have a section that currently contain multiple items and you want to be able to scroll the section as a block, we’d suggest putting all those elements into a scrollable VLayout and making that be the only item shown in the section.
    So if you have a section like this:

// assume canvas1, canvas2 and canvas3 are defined already
isc.SectionStack.create({
    ... // various props
    sections:[
        {title:"section1", 
          items:[canvas1, canvas2, canvas3]},
          ... // various other items
   ]
});

You’d rework it to look like this:

// assume canvas1, canvas2 and canvas3 are defined already
isc.SectionStack.create({
    ... // various props
    sections:[
        {title:"section1", 
          items:[
              isc.VLayout.create({
                  autoDraw:false, overflow:"auto", 
                  members:[canvas1, canvas2, canvas3]}]
              })
          ]},
          ... // various other items
   ]
});

Regards
Isomorphic Software

Thanks for you help ,but it doesn’t works

My code is
isc.SectionStack.create({
visibilityMode:“multiple”,
animateSections:true,
align:“bottom”,
width:“100%”,
sections:[
{autoShow:true, title:“Summary”, items:[ summaryForm], ID:“summarySectionStackSection”,icon:“summary.png”},
{autoShow:false, title:“Assets”, items:[ assetsForm ], ID:“AssetsSectionStackSection”,icon:“asset.png” },
{autoShow:false, title:“Transactions”, items:[transactionsForm],ID:“TransactionsSectionStackSection”,icon:“transactions.png”},
{autoShow:false, title:“Reports”, items:[reportsForm],id:“ReportsSectionStackSection”,icon:“reports.png”},
{autoShow:false, title:“News and Commentary”, items:[newsandcommentaryForm],ID:“NewsAndCommentarySectionStackSection”,icon:“opener.png”}
],
showResizeBar:false,
ID:“contentWindowSectionStack”
});
i want use icon parameter to change the sectionItem’s icon,so i don’t know to change my code according you example,pls modify my code before,thanks a lots.

Hi Tony,
You were originally asking how to add scrollbars to each section stack item, to allow the user to scroll every element of the section stack into view.
To achieve this with your code below, you have 2 options:
1: make the entire section stack scrollable by setting overflow:“auto”. Like this:

isc.SectionStack.create({
    overflow:"auto",
    visibilityMode:"multiple",
    animateSections:true,
    align:"bottom",
    width:"100%",
    sections:[
        {autoShow:true, title:"Summary", items:[ summaryForm],
         ID:"summarySectionStackSection",icon:"summary.png" },
        {autoShow:false, title:"Assets", items:[ assetsForm ], 
         ID:"AssetsSectionStackSection",icon:"asset.png" },
        {autoShow:false, title:"Transactions", 
         items:[transactionsForm], 
         ID:"TransactionsSectionStackSection",icon:"transactions.png"},
        {autoShow:false, title:"Reports",  
         items:[reportsForm],id:"ReportsSectionStackSection",
         icon:"reports.png "},
        {autoShow:false, title:"News and Commentary", 
         items:[newsandcommentaryForm],
         ID:"NewsAndCommentarySectionStackSection",icon:"o pener.png"}
    ],
    showResizeBar:false,
    ID:"contentWindowSectionStack"
});

The other approach is to make each section in the stack scrollable. You can achieve this by similarly setting ‘overflow:“auto”’ on the top level item in each section - so summaryForm, assetsForm, transactionsForm and so on would all be overflow:“auto”.

You’re now asking about how to change the sectionItem’s icon. You can achieve this by setting the “icon” property in your section definition blocks.
You’ve already applied this property so should be seeing custom icons showing up (or if no media is available for the icons, the ‘broken image’ indicator).

The URL for the icon will be derived from this icon property, with “_closed” or “_opened” appended to it to show the open state of the section. So your “summary.png” specification means you’ll need media for “summary_opened.png” and “summary_closed.png”.
Take a look at the documentation for the icon property for more information on this: [here]

Thanks
Isomorphic Software