Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added support so the animation won't go out side of the document size

  • Loading branch information...
commit ab5a579dcbd29ca89d7709d2c3066e0adeba1e29 1 parent d67e905
Jesper Lindstroem Nielsen authored
Showing with 15 additions and 1 deletion.
  1. +15 −1 ui/jquery.effects.split.js
View
16 ui/jquery.effects.split.js
@@ -53,6 +53,18 @@
container.css( "overflow", o.crop ? "hidden" : "visible" );
+ //Makes another container so the animations won't overflow the document size if crop not used
+ if ( !o.crop ) {
+ container = container.wrap( "<div></div>" ).parent().css( {
+ position: 'absolute',
+ top: 0,
+ left: 0,
+ width: $ ( document ).width( ),
+ height: $ ( document ).height( ),
+ overflow: 'hidden'
+ } );
+ }
+
//Make animation
for ( i = 0; i < o.rows; i++ ) {
for ( j = 0; j < o.columns; j++ ) {
@@ -78,7 +90,9 @@
} else {
el.hide();
}
- container.detach();
+
+ container.remove( );
+
if ( $.isFunction( o.complete ) ) {
o.complete.apply( el[ 0 ] );
}

1 comment on commit ab5a579

@gnarf

Considering the issues you brought up with this approach, lets just revert this commit and then worry about it after we get the main part of the effects pulled in

Please sign in to comment.
Something went wrong with that request. Please try again.