Adobe 38040334 - Dreamweaver CS3 User Manual page 375

Api reference
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

dreamweaver.activeViewScale()
Availability
Dreamweaver 8.
Description
This function gets or sets a mutable floating point property. When you get the value, Dreamweaver returns the active
view's scale as it appears in the Zoom combo box, divided by 100. For example, 100% is 1.0; 50% is 0.5, and so on.
When you set the value, Dreamweaver sets the value in the Zoom combo box. The value can be between 0.06 and
64.00, which correspond to 6% and 6400%.
Example
The following example gets the value of the current view's scale and zooms in if it can and if the scale is less than or
equal to 100%:
if (canZoom() && dreamweaver.activeViewScale <= 1.0) {
zoomIn();
}
The following example sets the value of the current view's 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 452.
Example
if (canZoom()){
fitAll();
}
dreamweaver.fitSelection()
Availability
Dreamweaver 8.
DREAMWEAVER CS3
370
API Reference

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents