bug 104898 the borderpadding should not influence the inner table margin relative to the

outertable frame r=karnaze sr=attinasi
This commit is contained in:
bernd.mielke@snafu.de
2001-10-24 14:36:33 +00:00
parent 93dce452ae
commit 290bfb33a3
2 changed files with 10 additions and 0 deletions

View File

@@ -2044,6 +2044,11 @@ nsHTMLReflowState::CalculateBlockSideMargins(nscoord aAvailWidth,
// Special rules for tables. In general, tables will stick to the
// left edge when they are too large otherwise they behave like
// blocks.
// the borderpadding should not influence the margin relative to the
// outertable frame
availMarginSpace = aAvailWidth - aComputedWidth;
if (availMarginSpace < 0) {
// Whoops - the TABLE element is too large for the available
// space. In this case use the "direction" property to pin the