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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user