PDT+ bug 30559 - incorrect inclusion of table margin when placing row group. r=buster, a=rickg.

This commit is contained in:
karnaze%netscape.com 2000-03-14 14:42:25 +00:00
Родитель 58ca9dd361
Коммит 7bdd4c903b
2 изменённых файлов: 10 добавлений и 10 удалений

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

@ -2455,12 +2455,12 @@ NS_METHOD nsTableFrame::IncrementalReflow(nsIPresContext* aPresContext,
}
reflowState.availableWidth = pass1Width;
// get margin + border + padding
nsMargin borderMarginPadding;
GetTableBorder (borderMarginPadding);
borderMarginPadding += aReflowState.mComputedMargin + aReflowState.mComputedPadding;
// get border + padding
nsMargin borderPadding;
GetTableBorder (borderPadding);
borderPadding += aReflowState.mComputedPadding;
InnerTableReflowState state(aPresContext, reflowState, borderMarginPadding);
InnerTableReflowState state(aPresContext, reflowState, borderPadding);
// determine if this frame is the target or not
nsIFrame *target=nsnull;

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

@ -2455,12 +2455,12 @@ NS_METHOD nsTableFrame::IncrementalReflow(nsIPresContext* aPresContext,
}
reflowState.availableWidth = pass1Width;
// get margin + border + padding
nsMargin borderMarginPadding;
GetTableBorder (borderMarginPadding);
borderMarginPadding += aReflowState.mComputedMargin + aReflowState.mComputedPadding;
// get border + padding
nsMargin borderPadding;
GetTableBorder (borderPadding);
borderPadding += aReflowState.mComputedPadding;
InnerTableReflowState state(aPresContext, reflowState, borderMarginPadding);
InnerTableReflowState state(aPresContext, reflowState, borderPadding);
// determine if this frame is the target or not
nsIFrame *target=nsnull;