Browse Source

#4181 fix issue with jQ 3.0 width calculations causing shape to break

pull/4206/head
Jack Lukic 8 years ago
parent
commit
2b955e0f81
1 changed files with 16 additions and 4 deletions
  1. 20
      src/definitions/modules/shape.js

20
src/definitions/modules/shape.js

@ -307,9 +307,12 @@ $.fn.shape = function(parameters) {
}
if( !module.is.animating()) {
module.debug('Flipping up', $nextSide);
var
transform = module.get.transform.up()
;
module.set.stageSize();
module.stage.above();
module.animate( module.get.transform.up() );
module.animate(transform);
}
else {
module.queue('flip up');
@ -323,9 +326,12 @@ $.fn.shape = function(parameters) {
}
if( !module.is.animating()) {
module.debug('Flipping down', $nextSide);
var
transform = module.get.transform.down()
;
module.set.stageSize();
module.stage.below();
module.animate( module.get.transform.down() );
module.animate(transform);
}
else {
module.queue('flip down');
@ -339,9 +345,12 @@ $.fn.shape = function(parameters) {
}
if( !module.is.animating()) {
module.debug('Flipping left', $nextSide);
var
transform = module.get.transform.left()
;
module.set.stageSize();
module.stage.left();
module.animate(module.get.transform.left() );
module.animate(transform);
}
else {
module.queue('flip left');
@ -355,9 +364,12 @@ $.fn.shape = function(parameters) {
}
if( !module.is.animating()) {
module.debug('Flipping right', $nextSide);
var
transform = module.get.transform.right()
;
module.set.stageSize();
module.stage.right();
module.animate(module.get.transform.right() );
module.animate(transform);
}
else {
module.queue('flip right');

Loading…
Cancel
Save