Property: size: Difference between revisions

From Turn.js Documentation
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
Gets the size of the flipbook. It would be an object with two keys, width and height.
Gets the size of the flipbook. It would be an object with two keys, <tt>width</tt> and <tt>height</tt>.


Example:
Example:

Revision as of 04:10, 6 July 2012

Gets the size of the flipbook. It would be an object with two keys, width and height.

Example:

var size = $("#flipbook").turn("size");
alert("width:"+size.width + ", height:"+size.height);

<yambe:breadcrumb>Turn Properties</yambe:breadcrumb>