@@ -21,7 +21,9 @@ $.effects.effect.puff = function( o, done ) {
21
21
factor = percent / 100 ,
22
22
original = {
23
23
height : elem . height ( ) ,
24
- width : elem . width ( )
24
+ width : elem . width ( ) ,
25
+ outerHeight : elem . outerHeight ( ) ,
26
+ outerWidth : elem . outerWidth ( )
25
27
} ;
26
28
27
29
$ . extend ( o , {
@@ -35,7 +37,9 @@ $.effects.effect.puff = function( o, done ) {
35
37
original :
36
38
{
37
39
height : original . height * factor ,
38
- width : original . width * factor
40
+ width : original . width * factor ,
41
+ outerHeight : original . outerHeight * factor ,
42
+ outerWidth : original . outerWidth * factor
39
43
}
40
44
} ) ;
41
45
@@ -74,7 +78,12 @@ $.effects.effect.scale = function( o, done ) {
74
78
options . restore = true ;
75
79
}
76
80
77
- options . from = o . from || ( mode === "show" ? { height : 0 , width : 0 } : original ) ;
81
+ options . from = o . from || ( mode === "show" ? {
82
+ height : 0 ,
83
+ width : 0 ,
84
+ outerHeight : 0 ,
85
+ outerWidth : 0
86
+ } : original ) ;
78
87
options . to = {
79
88
height : original . height * factor . y ,
80
89
width : original . width * factor . x ,
@@ -124,7 +133,9 @@ $.effects.effect.size = function( o, done ) {
124
133
props = restore ? props0 : props1 ,
125
134
zero = {
126
135
height : 0 ,
127
- width : 0
136
+ width : 0 ,
137
+ outerHeight : 0 ,
138
+ outerWidth : 0
128
139
} ;
129
140
130
141
if ( mode === "show" ) {
@@ -213,19 +224,25 @@ $.effects.effect.size = function( o, done ) {
213
224
var child = $ ( this ) ,
214
225
c_original = {
215
226
height : child . height ( ) ,
216
- width : child . width ( )
227
+ width : child . width ( ) ,
228
+ outerHeight : child . outerHeight ( ) ,
229
+ outerWidth : child . outerWidth ( )
217
230
} ;
218
231
if ( restore ) {
219
232
$ . effects . save ( child , props2 ) ;
220
233
}
221
234
222
235
child . from = {
223
236
height : c_original . height * factor . from . y ,
224
- width : c_original . width * factor . from . x
237
+ width : c_original . width * factor . from . x ,
238
+ outerHeight : c_original . outerHeight * factor . from . y ,
239
+ outerWidth : c_original . outerWidth * factor . from . x
225
240
} ;
226
241
child . to = {
227
242
height : c_original . height * factor . to . y ,
228
- width : c_original . width * factor . to . x
243
+ width : c_original . width * factor . to . x ,
244
+ outerHeight : c_original . height * factor . to . y ,
245
+ outerWidth : c_original . width * factor . to . x
229
246
} ;
230
247
231
248
// Vertical props scaling
0 commit comments