beautypg.com

Dreamweaver.fitwidth(), Dreamweaver.zoomin() – Adobe Dreamweaver API Reference CS5 User Manual

Page 427

background image

422

DREAMWEAVER API REFERENCE

Design

Last updated 8/27/2013

Enabler
See “

dreamweaver.canFitSelection()

” on page 505.

Example

if (canFitSeletion()){

fitSelection();
}

dreamweaver.fitWidth()

Availability
Dreamweaver 8.

Description
This function zooms in or out so that the entire document width fits in the currently visible portion of the Design view.

Arguments
None.

Returns
Nothing.

Enabler
See “

dreamweaver.canZoom()

” on page 510.

Example

if (canZoom()){

fitWidth();
}

dreamweaver.zoomIn()

Availability
Dreamweaver 8.

Description
This function zooms in on the currently active Design view or Live view. The zoom level is the next preset value in the
Magnification menu. If there is no next preset value, this function does nothing.

Arguments
None.

Returns
Nothing.