XULTreeViewRecord.onVisualFootprintChanged Member
called when a node above this one grows or shrinks. we need to adjust our own visualFootprint to match the change, and pass the message on.
Syntax
object.onVisualFootprintChanged(start, amount);
Arguments
Argument | Summary |
---|---|
start | |
amount |
Returns
Remarks
See Also
Source Code
function xtvr_vpchange (start, amount)
{
/* if we're not hidden, but this notification came from a hidden node
* (start == -1), ignore it, it doesn't affect us. */
if (start == -1 && !this.isHidden)
{
//dd ("vfp change (" + amount + ") from hidden node ignored.");
return;
}
this.visualFootprint += amount;
if ("parentRecord" in this)
this.parentRecord.onVisualFootprintChanged(start, amount);
}