User Guide

Zoom functions 465
The following example sets the value of the current views scale to 50%:
dreamweaver.activeViewScale = 0.50;
dreamweaver.fitAll()
Availability
Dreamweaver 8.
Description
This function zooms in or out so that the entire document fits in the currently visible portion
of the Design view.
Arguments
None.
Returns
Nothing.
Enabler
See dreamweaver.canZoom()” on page 574.
Example
if (canZoom()){
fitAll();
}
dreamweaver.fitSelection()
Availability
Dreamweaver 8.
Description
This function zooms in or out so that the current selection fits in the currently visible portion
of the Design view.
Arguments
None.
Returns
Nothing.
000_DW_API_Print.book Page 465 Wednesday, July 20, 2005 11:58 AM