bug 15958(partial) - uses mComputedWidth instead of availableSize.width. r=buster; asked hook for permission, got no response.

This commit is contained in:
karnaze%netscape.com 1999-10-18 13:47:01 +00:00
Родитель 633c13eced
Коммит d660d6c031
2 изменённых файлов: 4 добавлений и 4 удалений

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

@ -787,14 +787,14 @@ nscoord nsTableOuterFrame::ComputeAvailableTableWidth(const nsHTMLReflowState& a
const nsStyleSpacing* spacing =
(const nsStyleSpacing*)mStyleContext->GetStyleData(eStyleStruct_Spacing);
nsMargin margin(0,0,0,0);
// XXX handle percentages
// XXX handle percentage margin
spacing->GetMargin(margin);
maxWidth = aReflowState.availableWidth - margin.left - margin.right;
break;
}
case eStyleUnit_Percent:
maxWidth = (nscoord)((float)aReflowState.availableWidth * position->mWidth.GetPercentValue());
maxWidth = aReflowState.mComputedWidth;
break;
case eStyleUnit_Proportional:

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

@ -787,14 +787,14 @@ nscoord nsTableOuterFrame::ComputeAvailableTableWidth(const nsHTMLReflowState& a
const nsStyleSpacing* spacing =
(const nsStyleSpacing*)mStyleContext->GetStyleData(eStyleStruct_Spacing);
nsMargin margin(0,0,0,0);
// XXX handle percentages
// XXX handle percentage margin
spacing->GetMargin(margin);
maxWidth = aReflowState.availableWidth - margin.left - margin.right;
break;
}
case eStyleUnit_Percent:
maxWidth = (nscoord)((float)aReflowState.availableWidth * position->mWidth.GetPercentValue());
maxWidth = aReflowState.mComputedWidth;
break;
case eStyleUnit_Proportional: