Not sure why this didn't get properly checked in with the rest... Bug

167236, r=jkeiser, sr=roc+moz, moa=rods


git-svn-id: svn://10.0.0.236/trunk@133736 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2002-11-13 07:50:34 +00:00
parent 98ee17fb1b
commit f76cceac51
2 changed files with 14 additions and 8 deletions

View File

@@ -2260,11 +2260,14 @@ nsTextControlFrame::GetMaxSize(nsBoxLayoutState& aState, nsSize& aSize)
NS_IMETHODIMP
nsTextControlFrame::GetAscent(nsBoxLayoutState& aState, nscoord& aAscent)
{
nsSize size;
nsresult rv = GetPrefSize(aState, size);
aAscent = size.height;
// First calculate the ascent of the text inside
nsresult rv = nsStackFrame::GetAscent(aState, aAscent);
NS_ENSURE_SUCCESS(rv, rv);
// Now adjust the ascent for our borders and padding
aAscent += aState.GetReflowState()->mComputedBorderPadding.top;
return rv;
return NS_OK;
}
//IMPLEMENTING NS_IFORMCONTROLFRAME