bug 21143/21765, collapsed rows/cols not displayng when expanded.

git-svn-id: svn://10.0.0.236/trunk@56084 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
karnaze%netscape.com
1999-12-16 06:29:50 +00:00
parent 2fe89a5555
commit ea71168fd7
2 changed files with 6 additions and 0 deletions

View File

@@ -2027,6 +2027,9 @@ NS_METHOD nsTableFrame::AdjustForCollapsingCols(nsIPresContext* aPresContext,
if (cellData) {
cellFrame = cellData->mOrigCell;
if (cellFrame) { // the cell originates at (rowX, colX)
// reset the collapse offsets since they may have been collapsed previously
cellFrame->SetCollapseOffsetX(aPresContext, 0);
cellFrame->SetCollapseOffsetY(aPresContext, 0);
cellFrame->GetRect(cellRect);
if (collapseGroup || collapseCol) {
if (lastCell != cellFrame) { // do it only once if there is a row span