зеркало из https://github.com/mozilla/pjs.git
just a comment about a possible bug I saw going through this code
This commit is contained in:
Родитель
a5ea80bc2f
Коммит
a0f25c7eeb
|
@ -241,6 +241,7 @@ nsFormControlHelper::CalculateSize (nsIPresContext* aPresContext,
|
|||
// need to set charWidth and aDesiredSize.height
|
||||
charWidth = GetTextSize(*aPresContext, aFrame, 1, aDesiredSize, aRendContext);
|
||||
col = (col <= 0) ? 15 : col; // XXX why a default of 15 pixels, why hide it
|
||||
// XXX this conflicts with a default of 20 found in nsTextControlFrame.
|
||||
aDesiredSize.width = NSIntPixelsToTwips(col, p2t);
|
||||
} else {
|
||||
col = (col <= 0) ? 1 : col; // XXX why a default of 1 char, why hide it
|
||||
|
|
|
@ -241,6 +241,7 @@ nsFormControlHelper::CalculateSize (nsIPresContext* aPresContext,
|
|||
// need to set charWidth and aDesiredSize.height
|
||||
charWidth = GetTextSize(*aPresContext, aFrame, 1, aDesiredSize, aRendContext);
|
||||
col = (col <= 0) ? 15 : col; // XXX why a default of 15 pixels, why hide it
|
||||
// XXX this conflicts with a default of 20 found in nsTextControlFrame.
|
||||
aDesiredSize.width = NSIntPixelsToTwips(col, p2t);
|
||||
} else {
|
||||
col = (col <= 0) ? 1 : col; // XXX why a default of 1 char, why hide it
|
||||
|
|
Загрузка…
Ссылка в новой задаче