mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
Bug 416845. Use the right x position when distributing height to rows. r=bernd, sr=bzbarsky
This commit is contained in:
parent
1e89b29dfe
commit
da3c8521af
@ -3336,10 +3336,9 @@ nsTableFrame::DistributeHeightToRows(const nsHTMLReflowState& aReflowState,
|
||||
PR_FALSE);
|
||||
}
|
||||
}
|
||||
else if (amountUsed > 0 && yOriginRG != rgFrame->GetPosition().y) {
|
||||
NS_ASSERTION(rgFrame->GetPosition().x == 0, "Unexpected position");
|
||||
else if (amountUsed > 0 && yOriginRG != rgRect.y) {
|
||||
rgFrame->InvalidateOverflowRect();
|
||||
rgFrame->SetPosition(nsPoint(0, yOriginRG));
|
||||
rgFrame->SetPosition(nsPoint(rgRect.x, yOriginRG));
|
||||
// Make sure child views are properly positioned
|
||||
nsTableFrame::RePositionViews(rgFrame);
|
||||
rgFrame->InvalidateOverflowRect();
|
||||
@ -3497,10 +3496,9 @@ nsTableFrame::DistributeHeightToRows(const nsHTMLReflowState& aReflowState,
|
||||
// Make sure child views are properly positioned
|
||||
// XXX what happens if childFrame is a scroll frame and this gets skipped? see also below
|
||||
}
|
||||
else if (amountUsed > 0 && yOriginRG != rgFrame->GetPosition().y) {
|
||||
NS_ASSERTION(rgFrame->GetPosition().x == 0, "Unexpected position");
|
||||
else if (amountUsed > 0 && yOriginRG != rgRect.y) {
|
||||
rgFrame->InvalidateOverflowRect();
|
||||
rgFrame->SetPosition(nsPoint(0, yOriginRG));
|
||||
rgFrame->SetPosition(nsPoint(rgRect.x, yOriginRG));
|
||||
// Make sure child views are properly positioned
|
||||
nsTableFrame::RePositionViews(rgFrame);
|
||||
rgFrame->InvalidateOverflowRect();
|
||||
|
Loading…
Reference in New Issue
Block a user