don't substract caption margins twice, bug 91057, r=karnaze sr=waterson

This commit is contained in:
bernd.mielke%snafu.de 2001-08-09 05:24:14 +00:00
parent 48925d96bc
commit 46ebaf77da
2 changed files with 4 additions and 2 deletions

View File

@ -1806,7 +1806,8 @@ nsHTMLReflowState::ComputeBlockBoxData(nsIPresContext* aPresContext,
frame->GetFrameType(getter_AddRefs(fType));
if (nsLayoutAtoms::tableOuterFrame == fType.get()) {
mComputedWidth = 0; // XXX temp fix for trees
} else if (nsLayoutAtoms::tableFrame == fType.get()) {
} else if ((nsLayoutAtoms::tableFrame == fType.get()) ||
(nsLayoutAtoms::tableCaptionFrame == fType.get())) {
mComputedWidth = NS_SHRINKWRAPWIDTH;
if (eStyleUnit_Auto == mStyleMargin->mMargin.GetLeftUnit()) {
mComputedMargin.left = NS_AUTOMARGIN;

View File

@ -1806,7 +1806,8 @@ nsHTMLReflowState::ComputeBlockBoxData(nsIPresContext* aPresContext,
frame->GetFrameType(getter_AddRefs(fType));
if (nsLayoutAtoms::tableOuterFrame == fType.get()) {
mComputedWidth = 0; // XXX temp fix for trees
} else if (nsLayoutAtoms::tableFrame == fType.get()) {
} else if ((nsLayoutAtoms::tableFrame == fType.get()) ||
(nsLayoutAtoms::tableCaptionFrame == fType.get())) {
mComputedWidth = NS_SHRINKWRAPWIDTH;
if (eStyleUnit_Auto == mStyleMargin->mMargin.GetLeftUnit()) {
mComputedMargin.left = NS_AUTOMARGIN;