factor = percent / 100,
original = {
height: elem.height(),
- width: elem.width()
+ width: elem.width(),
+ outerHeight: elem.outerHeight(),
+ outerWidth: elem.outerWidth()
};
$.extend( o, {
original :
{
height: original.height * factor,
- width: original.width * factor
+ width: original.width * factor,
+ outerHeight: original.outerHeight * factor,
+ outerWidth: original.outerWidth * factor
}
});
options.restore = true;
}
- options.from = o.from || ( mode === "show" ? { height: 0, width: 0 } : original );
+ options.from = o.from || ( mode === "show" ? {
+ height: 0,
+ width: 0,
+ outerHeight: 0,
+ outerWidth: 0
+ } : original );
options.to = {
height: original.height * factor.y,
width: original.width * factor.x,
props = restore ? props0 : props1,
zero = {
height: 0,
- width: 0
+ width: 0,
+ outerHeight: 0,
+ outerWidth: 0
};
if ( mode === "show" ) {
var child = $( this ),
c_original = {
height: child.height(),
- width: child.width()
+ width: child.width(),
+ outerHeight: child.outerHeight(),
+ outerWidth: child.outerWidth()
};
if (restore) {
$.effects.save(child, props2);
child.from = {
height: c_original.height * factor.from.y,
- width: c_original.width * factor.from.x
+ width: c_original.width * factor.from.x,
+ outerHeight: c_original.outerHeight * factor.from.y,
+ outerWidth: c_original.outerWidth * factor.from.x
};
child.to = {
height: c_original.height * factor.to.y,
- width: c_original.width * factor.to.x
+ width: c_original.width * factor.to.x,
+ outerHeight: c_original.height * factor.to.y,
+ outerWidth: c_original.width * factor.to.x
};
// Vertical props scaling