John Lindal![]()
This package adds the following functions:
Example uses of the functions provided by this add-on.
<script src="http://yui.yahooapis.com/3.1.0/build/yui/yui-min.js"></script>YUI({
//Last Gallery Build of this module
gallery: 'gallery-2009.12.08-22'
}).use('gallery-dimensions', function(Y)
{
alert('2em = '+Y.emToPx(2)+'px');
var node = Y.one('#my-div');
alert('my-div has top margin = '+node.parseDimensionStyle('margin-top')+'px'); // works even if style is in em
});No forum posts for this module.
© 2010 YUI Library - Site Credits