Bug 614330 maxrows="10" doesn't work in SeaMonkey's search bar r=IanN

NPOTB DONTBUILD
This commit is contained in:
Neil Rashbrook 2011-03-23 22:02:38 +00:00
parent 3c072cd9b1
commit 48cfddf179

@ -1514,6 +1514,7 @@
<property name="pageCount"
onget="return this.tree.treeBoxObject.getPageLength();"/>
<field name="maxRows">0</field>
<field name="mLastRows">0</field>
<method name="initialize">
@ -1521,6 +1522,7 @@
this.showCommentColumn = this.textbox.showCommentColumn;
this.tree.view = this.textbox.view;
this.view = this.textbox.view;
this.maxRows = this.textbox.maxRows;
]]></body>
</method>
@ -1533,7 +1535,7 @@
// detect the desired height of the tree
var bx = this.tree.treeBoxObject;
var view = this.view;
var rows = this.textbox ? this.textbox.maxRows : 6;
var rows = this.maxRows || 6;
if (!view.rowCount || (rows && view.rowCount < rows))
rows = view.rowCount;
@ -1636,6 +1638,7 @@
this.tree.view = aInput.controller;
this.view = this.tree.view;
this.showCommentColumn = aInput.showCommentColumn;
this.maxRows = aInput.maxRows;
this.invalidate();
var viewer = aElement