mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
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:
parent
00acadd475
commit
a241132e43
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user