Hello,
I have LayoutPolicy="fill" in an Hlayout and when I show/hide a member the layout adjusts fine until I use the resize bar i.e. when I hide one member the space it occupied is used up by the remaining member expanding to fill the space. After any adjustments using the resize bar this no longer happens.
Is it somehow possible to achieve the same behaviour whether the user has drag-resized or not?
The example code shows the scenario - if you click on the "Show/Hide Detail" button without resizing then that is what I would like to achieve at all times but it won't happen once you use the resize bar.
Thanks in anticipation
Dan
SmartClient Version: v8.2_2012-04-08/LGPL Development Only
I have LayoutPolicy="fill" in an Hlayout and when I show/hide a member the layout adjusts fine until I use the resize bar i.e. when I hide one member the space it occupied is used up by the remaining member expanding to fill the space. After any adjustments using the resize bar this no longer happens.
Is it somehow possible to achieve the same behaviour whether the user has drag-resized or not?
The example code shows the scenario - if you click on the "Show/Hide Detail" button without resizing then that is what I would like to achieve at all times but it won't happen once you use the resize bar.
Code:
isc.VLayout.create({ ID: "vl", defaultHeight:"100%", defaultWidth:"100%", members:[ isc.IconButton.create({ title:"Show/Hide Detail", actionType:"checkbox", click: function () { if (dashboardappl0layoutDetail.visible==true) { dashboardappl0layoutDetail.visible=false; dashboardappl0layoutDetail.hide(); } else { dashboardappl0layoutDetail.visible=true; dashboardappl0layoutDetail.show(); } } }) , isc.HLayout.create({ ID:"hl", height:"60%", defaultWidth:"100%", members:[ isc.ListGrid.create({ ID:"listGrid", height:"100%", showResizeBar:true }) , isc.VLayout.create({ ID:"dashboardappl0layoutDetail", width:330, visible:false, visibility: "hidden", defaultHeight:"100%", members:[ isc.Label.create({ contents: "Detail", align: "center", width:"100%" }) ] }) ] }) ] });
Dan
SmartClient Version: v8.2_2012-04-08/LGPL Development Only
Comment