bug 131687 Take into acount MIN_adj width as it has been included in totals before r=karnaze sr=waterson

This commit is contained in:
bernd.mielke%snafu.de 2002-07-02 04:39:16 +00:00
Родитель 681db8a644
Коммит aee2600aa3
2 изменённых файлов: 4 добавлений и 0 удалений

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

@ -1859,6 +1859,8 @@ void BasicTableLayoutStrategy::AllocateConstrained(PRInt32 aAvailWidth,
// proportional and desired widths are handled together
PRBool haveProWidth = PR_FALSE;
if (DES_CON == aWidthType) {
// Take into acount MIN_adj width as it has been included in totals before
maxWidth = PR_MAX(maxWidth, colFrame->GetWidth(MIN_ADJ));
nscoord proWidth = colFrame->GetWidth(MIN_PRO);
if (proWidth >= 0) {
haveProWidth = PR_TRUE;

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

@ -1859,6 +1859,8 @@ void BasicTableLayoutStrategy::AllocateConstrained(PRInt32 aAvailWidth,
// proportional and desired widths are handled together
PRBool haveProWidth = PR_FALSE;
if (DES_CON == aWidthType) {
// Take into acount MIN_adj width as it has been included in totals before
maxWidth = PR_MAX(maxWidth, colFrame->GetWidth(MIN_ADJ));
nscoord proWidth = colFrame->GetWidth(MIN_PRO);
if (proWidth >= 0) {
haveProWidth = PR_TRUE;