setScale method
Specifies the scale mode to be used to display a page.
Syntax
ViewONE.setScale(int scale)
The following table lists the valid values for the scale parameter.
scale | Description |
---|---|
0 | Best fit The page is scaled to fit into the window area so that the entire page is visible. |
1 | Fit-to-window-width The page is scaled so that the width of the page matches the width of the window area. This setting can result in the visible page height that exceeds the available window height. In this situation, a vertical scroll bar appears automatically. |
2 | Fit-to-window-height The page is scaled so that the height of the page matches the height of the window area. This setting can result in the visible page width that exceeds the available window width. In this situation, a horizontal scroll bar appears |
Requirements
- IBM® Daeja™ ViewONE Standard, any version
- IBM Daeja ViewONE Professional, any version
- IBM Daeja ViewONE Virtual, any version
- No additional modules
Example
ViewONE.setScale(0);