Browse Source

Fix #4181

pull/4206/head
Jack Lukic 8 years ago
parent
commit
2af76ba5ec
1 changed files with 6 additions and 6 deletions
  1. 12
      src/definitions/modules/shape.js

12
src/definitions/modules/shape.js

@ -244,6 +244,11 @@ $.fn.shape = function(parameters) {
var
$clone = $module.clone().addClass(className.loading),
$activeSide = $clone.find('.' + settings.className.active),
$nextSide = (nextIndex)
? $clone.find(selector.side).eq(nextIndex)
: ( $activeSide.next(selector.side).length > 0 )
? $activeSide.next(selector.side)
: $clone.find(selector.side).first(),
newWidth = (settings.width == 'next')
? $nextSide.outerWidth(true)
: (settings.width == 'initial')
@ -253,12 +258,7 @@ $.fn.shape = function(parameters) {
? $nextSide.outerHeight(true)
: (settings.height == 'initial')
? $module.height()
: settings.height,
$nextSide = (nextIndex)
? $clone.find(selector.side).eq(nextIndex)
: ( $activeSide.next(selector.side).length > 0 )
? $activeSide.next(selector.side)
: $clone.find(selector.side).first()
: settings.height
;
$activeSide.removeClass(className.active);
$nextSide.addClass(className.active);

Loading…
Cancel
Save