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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user