Design How-To / Modify an object's borders, margins, or padding |
As explained in Size expressions for bordered boxes, the value of max is automatically adjusted by the border values. This causes unexpected results in expressions such as max-2cm"or "max/2", for example, where max is only a component of a more complex expression. Modify such expressions as follows:
LAYOUTNODE: x-Size="max/2", leftBorderWidth="2mm", leftMargin="1mm", rightBorderWidth="1.5mm", rightPadding="3mm"
Changing the expression for x-Size:
The final property values for the box are:
LAYOUTNODE: x-Size="(max-7.5mm)/2-7.5mm", leftBorderWidth="2mm", leftMargin="1mm", rightBorderWidth="1.5mm", rightPadding="3mm"