зеркало из https://github.com/mozilla/gecko-dev.git
Родитель
82e1e81ee2
Коммит
2ed2fb7f32
|
@ -91,10 +91,7 @@ function bov_scrollto (line, align)
|
||||||
|
|
||||||
/* all rows are visible, nothing to scroll */
|
/* all rows are visible, nothing to scroll */
|
||||||
if (first == 0 && last > this.rowCount)
|
if (first == 0 && last > this.rowCount)
|
||||||
{
|
|
||||||
dd ("scrollTo: view does not overflow");
|
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
|
|
||||||
/* outliner lines are 0 based, we accept one based lines, deal with it */
|
/* outliner lines are 0 based, we accept one based lines, deal with it */
|
||||||
--line;
|
--line;
|
||||||
|
@ -110,7 +107,6 @@ function bov_scrollto (line, align)
|
||||||
if (line > this.rowCount - viz) /* overscroll, can't put a row from */
|
if (line > this.rowCount - viz) /* overscroll, can't put a row from */
|
||||||
line = this.rowCount - viz; /* last page at the top. */
|
line = this.rowCount - viz; /* last page at the top. */
|
||||||
this.outliner.scrollToRow(line);
|
this.outliner.scrollToRow(line);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
else if (align > 0)
|
else if (align > 0)
|
||||||
{
|
{
|
||||||
|
|
|
@ -91,10 +91,7 @@ function bov_scrollto (line, align)
|
||||||
|
|
||||||
/* all rows are visible, nothing to scroll */
|
/* all rows are visible, nothing to scroll */
|
||||||
if (first == 0 && last > this.rowCount)
|
if (first == 0 && last > this.rowCount)
|
||||||
{
|
|
||||||
dd ("scrollTo: view does not overflow");
|
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
|
|
||||||
/* outliner lines are 0 based, we accept one based lines, deal with it */
|
/* outliner lines are 0 based, we accept one based lines, deal with it */
|
||||||
--line;
|
--line;
|
||||||
|
@ -110,7 +107,6 @@ function bov_scrollto (line, align)
|
||||||
if (line > this.rowCount - viz) /* overscroll, can't put a row from */
|
if (line > this.rowCount - viz) /* overscroll, can't put a row from */
|
||||||
line = this.rowCount - viz; /* last page at the top. */
|
line = this.rowCount - viz; /* last page at the top. */
|
||||||
this.outliner.scrollToRow(line);
|
this.outliner.scrollToRow(line);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
else if (align > 0)
|
else if (align > 0)
|
||||||
{
|
{
|
||||||
|
|
Загрузка…
Ссылка в новой задаче