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

git-svn-id: svn://10.0.0.236/trunk@124473 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bernd.mielke%snafu.de
2002-07-02 04:39:16 +00:00
parent 0c52be1f09
commit 38f87f8a57
2 changed files with 4 additions and 0 deletions

View File

@@ -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;