Partial fix to bug

This commit is contained in:
kipp%netscape.com 1999-03-05 19:23:24 +00:00
parent 95696e90a5
commit 599643d249
2 changed files with 2 additions and 2 deletions

View File

@ -303,7 +303,7 @@ nsTextControlFrame::GetDesiredSize(nsIPresContext* aPresContext,
if (aDesiredLayoutSize.maxElementSize) {
aDesiredLayoutSize.maxElementSize->width = minSize.width;
aDesiredLayoutSize.maxElementSize->height = minSize.width;
aDesiredLayoutSize.maxElementSize->height = minSize.height;
}
aDesiredWidgetSize.width = aDesiredLayoutSize.width;

View File

@ -303,7 +303,7 @@ nsTextControlFrame::GetDesiredSize(nsIPresContext* aPresContext,
if (aDesiredLayoutSize.maxElementSize) {
aDesiredLayoutSize.maxElementSize->width = minSize.width;
aDesiredLayoutSize.maxElementSize->height = minSize.width;
aDesiredLayoutSize.maxElementSize->height = minSize.height;
}
aDesiredWidgetSize.width = aDesiredLayoutSize.width;