1.8

Table Of Contents
Adding a Positioned Box
To insert a Positioned Box, use the icon on the toolbar.
Moving and resizing a Positioned Box
Positioned Boxes can be moved by dragging the borders, and resized using the handles on the
sides and the corners. Pressing any arrow key moves the box by 1 pixel in the direction of that
key.
Alternatively the size and position can be set on the Attributes pane. Note that the size and
offset values will be displayed in the default print units as defined in the preferences.
To move or resize multiple Positioned Boxes at the same time, hold the Ctrl key while selecting
them. You could either select them in the Design view (the main editor) or in the Outline pane.
Dynamically changing the position
A Positioned Box has the following attributes:
l
anchor defines the page number (starting by 0) the box is placed on
l
offset-x defines the horizontal position of the box relative to its container
l
offset-y defines the vertical position of the box relative to its container.
These attributes can be set in a script. The following script dynamically changes the position of
a Positioned Box in a Print context by setting the offset-x and offset-y values.
results.attr('offset-x','96');
results.attr('offset-y','96');
The measurements are in pixels (e.g. 96px = 1in). Note that you do not need to set the units.
Note
Do not set the top or left property of a Positioned Box in a style sheet. The position of a
Positioned Box in a Print context is handled via its attributes to take the page (or Master Page) and
page margins into account. Attributes cannot be overwritten from within a style sheet: style sheets
specify style properties, not values of attributes.
Page 514