Hi
I want to rezise to a fixed size or hide a panel from a panelset dinamically
For instance I have a panelSet thet has 3 rows.
The row in teh middle has a pannel which has a handler that executes a script to change the rows attibutes in order to hide one of the panels (look at the code)
This works perfectly, but when I click again on the middle panel to change it back to the way it was it succesfully changes the attribute but firefox does not display any changes.
any ideas?
<e:handler event="click" type="application/javascript">
var oPanelSet = bb.document.getElementById("news_panelSet");
var sPanelRowAttribute = oPanelSet.getAttribute("rows");
if(sPanelRowAttribute == "* 5px 0px"){
oPanelSet.setAttribute("rows", "* 5px 200px");
}else{
oPanelSet.setAttribute("rows", "* 5px 0px");
}
bb.callMethod(oPanelSet, "reset");
</e:handler>

Cant hide panel dynamically
16 November, 2007 - 13:44 — EmielHi kidpollo,
As far as I can check your code seems to be valid. The only thing I did find out is that it reacts strange to the 0px. If you cange your code to 1px instead of 0px it works fine.
I have entered your case as a bug into our internal issue tracking system.
ps. If you are using the 4.1 edition you do not have to call the reset method on the panelSet again because when the rows change it has a changer that calls the reset.