: Math.min(outerMaxWidth, getMaximumWidth(containingWidth));
// Otherwise, if this is not a table cell and the width is fixed, we need
// to calculate the value for auto margins here (This is typically used
// to center the contents).
} else if (display != Style.TABLE_CELL &&
style.lengthIsFixed(Style.WIDTH, true)) {
int remaining = (containingWidth -
style.getPx(Style.WIDTH, containingWidth) - left - right);
if (style.getEnum(Style.MARGIN_LEFT) == Style.AUTO) {
if (style.getEnum(Style.MARGIN_RIGHT) == Style.AUTO) {