b=22325. When resizing the row groups and rows because the table has an

explict height, we need to make sure any child views are re-positioned.
This doesn't solve the flicker problem but now edit fields are all in
the right place, and it's good enough that Buster can do his clothes
shoping


git-svn-id: svn://10.0.0.236/trunk@58536 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
troy%netscape.com
2000-01-25 03:11:24 +00:00
parent 2ad38ca064
commit 175e0dc98f
2 changed files with 18 additions and 0 deletions

View File

@@ -3565,6 +3565,15 @@ nscoord nsTableFrame::ComputeDesiredHeight(nsIPresContext* aPresContext
GetStyleData(eStyleStruct_Table, (const nsStyleStruct *&)tableStyle);
DistributeSpaceToRows(aPresContext, aReflowState, childFrame, sumOfRowHeights,
excess, tableStyle, excessForGroup, rowGroupYPos);
// Make sure child views are properly positioned
nsIView* view;
childFrame->GetView(aPresContext, &view);
if (view) {
nsContainerFrame::PositionFrameView(aPresContext, childFrame, view);
} else {
nsContainerFrame::PositionChildViews(aPresContext, childFrame);
}
}
else {
nsRect rowGroupRect;

View File

@@ -3565,6 +3565,15 @@ nscoord nsTableFrame::ComputeDesiredHeight(nsIPresContext* aPresContext
GetStyleData(eStyleStruct_Table, (const nsStyleStruct *&)tableStyle);
DistributeSpaceToRows(aPresContext, aReflowState, childFrame, sumOfRowHeights,
excess, tableStyle, excessForGroup, rowGroupYPos);
// Make sure child views are properly positioned
nsIView* view;
childFrame->GetView(aPresContext, &view);
if (view) {
nsContainerFrame::PositionFrameView(aPresContext, childFrame, view);
} else {
nsContainerFrame::PositionChildViews(aPresContext, childFrame);
}
}
else {
nsRect rowGroupRect;