fix for bug #14782 (reflowing window chrome mousing over links with long urls). rev sdagley, appr chofmann.

This commit is contained in:
pinkerton%netscape.com 1999-09-24 04:45:16 +00:00
Родитель aed47e4f8d
Коммит cd06745581
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -201,7 +201,7 @@ nsTitledButtonFrame::AttributeChanged(nsIPresContext* aPresContext,
// redraw
mRenderer->Redraw();
#if !ONLOAD_CALLED_TOO_EARLY
#if !ONLOAD_CALLED_TOO_EARLY
// onload handlers are called to early, so we have to do this code
// elsewhere. It really belongs HERE.
if ( aAttribute == nsHTMLAtoms::value ) {
@ -210,7 +210,6 @@ nsTitledButtonFrame::AttributeChanged(nsIPresContext* aPresContext,
mHasOnceBeenInMixedState = PR_TRUE;
}
}
#endif
@ -1366,7 +1365,8 @@ nsTitledButtonFrame::GetBoxInfo(nsIPresContext& aPresContext, const nsHTMLReflow
// depending on the type of alignment add in the space for the text
nsSize size;
GetTextSize(aPresContext, *aReflowState.rendContext, mTitle, size);
GetTextSize(aPresContext, *aReflowState.rendContext,
mCroppedTitle.Length() ? mCroppedTitle : mTitle, size);
switch (mAlign) {
case NS_SIDE_TOP: