зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
681db8a644
Коммит
aee2600aa3
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче