User Guide

Local Navigation

Preserving the aspect ratio of the view box

Aspect ratio refers to the ratio between the height and the width of a rectangular object.

You can preserve the aspect ratio of the view box when it is displayed in a view port on a BlackBerry® device that has a different aspect ratio. By default, the BlackBerry Composer does not preserve the aspect ratio of the view box. Instead, content is stretched so that it fits the view port.

You can specify how the BlackBerry device scales and aligns the view box in the view port.

  • Meet: The BlackBerry device scales and aligns the view box so that there is no loss of content, and adds transparent padding around the content.
  • Slice: The BlackBerry device clips the view box so that the content fills the view port with no padding.
The view box and view port are of equal dimensions The view box and view port are of different dimensions

Preserve Aspect Ratio: Ignored

The dimensions of the view box and view port are identical. The view box aspect ratio is not changed.

Preserve Aspect Ratio: On

Scaling: Meet

Alignment: Centered

The content in the view box is horizontally and vertically centered and scaled to fit the view port. No content is clipped.

Preserve Aspect Ratio: On

Scaling: Slice

Alignment: Centered

The content in the view box is horizontally and vertically centered and scaled to fill the view port. The excess content is clipped.

Preserve Aspect Ratio: Off

The aspect ratio is not preserved. The content in the view box is stretched to fit the view port.


Was this information helpful? Send us your comments.