Property: size: Difference between revisions

From Turn.js Documentation
Jump to navigation Jump to search
(Created page with "<yambe:breadcrumb>Turn Properties</yambe:breadcrumb>")
 
No edit summary
Line 1: Line 1:
Gets the size of the flipbook. It would be an object with two keys, width and height.
Example:
<pre type="javascript">
var size = $("#flipbook").turn("size");
alert("width:"+size.width + ", height:"+size.height);
</pre>
<yambe:breadcrumb>Turn Properties</yambe:breadcrumb>
<yambe:breadcrumb>Turn Properties</yambe:breadcrumb>

Revision as of 04:09, 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>