ZoomifyViewer.getViewWidth()

Availability

Flash Player 6.

Usage

ZoomifyViewerInstance.getViewWidth();

Parameters

None

Returns

ZoomifyViewer width in pixels.

Description

Returns the width of the ZoomifyViewer instance in pixels. Use getViewWidth in place of reading the component property _width as this property is not designed to allow for zoom and pan effects and will include horizontal distance encompassing image content that is zoomed out of view.

Example


var newWidth=ZoomifyViewerInstance.getViewWidth();
var newHeight=ZoomifyViewerInstance.getViewHeight();
ZoomifyViewerInstance.setSize(newWidth,newHeight);
ZoomifyViewerInstance.updateView();

See also

ZoomifyViewer.getViewHeight
ZoomifyViewer.setSize
ZoomifyViewer.updateView