now trims white space and makes sure the text is two spaces if empty

r=kmcclusk b=none
This commit is contained in:
rods@netscape.com
1999-12-05 20:48:37 +00:00
parent 672f94c84c
commit cfafaa8b02
2 changed files with 16 additions and 0 deletions

View File

@@ -205,6 +205,14 @@ nsGfxButtonControlFrame::DoNavQuirksReflow(nsIPresContext* aPresContext
}
}
}
const nsStyleText* textStyle;
GetStyleData(eStyleStruct_Text, (const nsStyleStruct *&)textStyle);
if (!textStyle->WhiteSpaceIsSignificant()) {
value.CompressWhitespace();
if (value.Length() == 0) {
value = " ";
}
}
nsInputDimensionSpec btnSpec(NULL, PR_FALSE, nsnull,
&value,0,