bug 60807 - reduce avail width by fixed widths when calculating colspan widths. sr=attinasi, r=bernd.mielke@snafu.de
git-svn-id: svn://10.0.0.236/trunk@92356 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -672,12 +672,12 @@ BasicTableLayoutStrategy::ComputeNonPctColspanWidths(PRInt32 aWidthInd
|
||||
fixLimitTotal = ((fixTotal - fixMinTotal) < availWidth) ? fixTotal - fixMinTotal : availWidth;
|
||||
desLimitTotal = ((autoDesTotal - autoMinTotal) < availWidth) ? autoDesTotal - autoMinTotal : availWidth;
|
||||
}
|
||||
else {
|
||||
if (autoDesTotal > 0) {
|
||||
availWidth -= pctTotal + fixTotal; // the pct and fix cols already reached their values
|
||||
else { // FIX or DES_CON with LIMIT_NONE
|
||||
if (FIX == aWidthIndex) {
|
||||
availWidth -= pctTotal;
|
||||
}
|
||||
else if (fixTotal > 0) {
|
||||
availWidth -= pctTotal; // the pct already reached their values
|
||||
else if (DES_CON == aWidthIndex) {
|
||||
availWidth -= pctTotal + fixTotal;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user