scroll after moving caret to top or bottom of editfield; bug #74600; r=mjudge, sr=kin

git-svn-id: svn://10.0.0.236/trunk@93156 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
brade%netscape.com
2001-04-26 18:37:04 +00:00
parent 559c530d69
commit 5e01e6a05b
2 changed files with 8 additions and 2 deletions

View File

@@ -2951,8 +2951,9 @@ PresShell::IntraLineMove(PRBool aForward, PRBool aExtend)
NS_IMETHODIMP
PresShell::PageMove(PRBool aForward, PRBool aExtend)
{
#if 1
return ScrollPage(aForward);
#if 0
#else
nsCOMPtr<nsIViewManager> viewManager;
nsresult result = GetViewManager(getter_AddRefs(viewManager));
@@ -3096,6 +3097,8 @@ PresShell::CompleteMove(PRBool aForward, PRBool aExtend)
bodyContent->ChildCount(offset);
}
result = mSelection->HandleClick(bodyContent,offset,offset,aExtend, PR_FALSE,aExtend);
// if we got this far, attempt to scroll no matter what the above result is
CompleteScroll(aForward);
}
}
}

View File

@@ -2951,8 +2951,9 @@ PresShell::IntraLineMove(PRBool aForward, PRBool aExtend)
NS_IMETHODIMP
PresShell::PageMove(PRBool aForward, PRBool aExtend)
{
#if 1
return ScrollPage(aForward);
#if 0
#else
nsCOMPtr<nsIViewManager> viewManager;
nsresult result = GetViewManager(getter_AddRefs(viewManager));
@@ -3096,6 +3097,8 @@ PresShell::CompleteMove(PRBool aForward, PRBool aExtend)
bodyContent->ChildCount(offset);
}
result = mSelection->HandleClick(bodyContent,offset,offset,aExtend, PR_FALSE,aExtend);
// if we got this far, attempt to scroll no matter what the above result is
CompleteScroll(aForward);
}
}
}