bug 553972 - split row groups only if the available height isconstrained r=roc

This commit is contained in:
Bernd 2010-05-13 16:15:31 +02:00
Родитель 08f189d3d3
Коммит 5abba25dc5
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -1324,9 +1324,9 @@ nsTableRowGroupFrame::Reflow(nsPresContext* aPresContext,
// See if all the frames fit. Do not try to split anything if we're
// not paginated ... we can't split across columns yet.
if (aReflowState.mFlags.mTableIsSplittable &&
NS_UNCONSTRAINEDSIZE != aReflowState.availableHeight &&
(NS_FRAME_NOT_COMPLETE == aStatus || splitDueToPageBreak ||
(NS_UNCONSTRAINEDSIZE != aReflowState.availableHeight &&
aDesiredSize.height > aReflowState.availableHeight))) {
aDesiredSize.height > aReflowState.availableHeight)) {
// Nope, find a place to split the row group
PRBool specialReflow = (PRBool)aReflowState.mFlags.mSpecialHeightReflow;
((nsHTMLReflowState::ReflowStateFlags&)aReflowState.mFlags).mSpecialHeightReflow = PR_FALSE;