Unsupported border+padding around form elements (except for image - it still works)

This commit is contained in:
kipp
1998-05-07 23:38:12 +00:00
parent fb661a6e49
commit 92637c280b
3 changed files with 4 additions and 24 deletions

View File

@@ -378,7 +378,8 @@ nsInputButtonFrame::ResizeReflow(nsIPresContext* aPresContext,
nsSize* aMaxElementSize,
ReflowStatus& aStatus)
{
if ((kButtonTag_Input == GetButtonTagType()) && (kButton_Image == GetButtonType())) {
if ((kButtonTag_Input == GetButtonTagType()) &&
(kButton_Image == GetButtonType())) {
nsSize ignore;
GetDesiredSize(aPresContext, aMaxSize, aDesiredSize, ignore);
AddBordersAndPadding(aPresContext, aDesiredSize);
@@ -386,10 +387,6 @@ nsInputButtonFrame::ResizeReflow(nsIPresContext* aPresContext,
aMaxElementSize->width = aDesiredSize.width;
aMaxElementSize->height = aDesiredSize.height;
}
mViewBounds.x = 0;
mViewBounds.y = 0;
mViewBounds.width = aDesiredSize.width;
mViewBounds.height = aDesiredSize.height;
aStatus = frComplete;
return NS_OK;
}