From f0ed6d38a248b5d9b2a3cc9ae9f1ec751f6ef125 Mon Sep 17 00:00:00 2001 From: kipp Date: Thu, 2 Jul 1998 21:24:56 +0000 Subject: [PATCH] Fixed bug where tables weren't returning a proper set of metrics --- layout/html/table/src/nsTableOuterFrame.cpp | 2 ++ layout/tables/nsTableOuterFrame.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/layout/html/table/src/nsTableOuterFrame.cpp b/layout/html/table/src/nsTableOuterFrame.cpp index b0da43844df0..50639a137d2a 100644 --- a/layout/html/table/src/nsTableOuterFrame.cpp +++ b/layout/html/table/src/nsTableOuterFrame.cpp @@ -480,6 +480,8 @@ NS_METHOD nsTableOuterFrame::Reflow(nsIPresContext* aPresContext, aDesiredSize.height = aReflowState.maxSize.height; else aDesiredSize.height = state.y; + aDesiredSize.ascent = aDesiredSize.height; + aDesiredSize.descent = 0; if (gsDebug==PR_TRUE) { diff --git a/layout/tables/nsTableOuterFrame.cpp b/layout/tables/nsTableOuterFrame.cpp index b0da43844df0..50639a137d2a 100644 --- a/layout/tables/nsTableOuterFrame.cpp +++ b/layout/tables/nsTableOuterFrame.cpp @@ -480,6 +480,8 @@ NS_METHOD nsTableOuterFrame::Reflow(nsIPresContext* aPresContext, aDesiredSize.height = aReflowState.maxSize.height; else aDesiredSize.height = state.y; + aDesiredSize.ascent = aDesiredSize.height; + aDesiredSize.descent = 0; if (gsDebug==PR_TRUE) {