XULTreeView.centerLine Member

scroll the line specified by line to the center of the tree

Syntax

object.centerLine(line);

Arguments

ArgumentSummary
line

Returns

Remarks

See Also

Source Code

function xtv_ctrln (line)
{
var first = this.tree.getFirstVisibleRow();
var last = this.tree.getLastVisibleRow();
this.scrollToRow(line - (last - first + 1) / 2);
}