After implementing jQuery UI 1.9 or newer, I noticed that the size effect returns to its original state. Below is a snippet of my code:
$(function () {
$('.circle').click(function () {
$(this).effect("size",
{ to: {width: 50,height: 50}, origin: ['bottom', 'right'] },
1000, function () {
$(this).css({'background': 'blue' });
});
});
});
With jQuery UI version 1.8.18 (under jQuery 1.7.2), the shape properly shrinks and maintains its size. However, in later versions, it reverts back.
I also observed that the "origin" parameter does not work in higher versions of jQuery UI. I used
origin: ['bottom', 'right']
Which had no impact on jQuery UI 1.9 or above.
Is there a way to prevent the restoration of the size and effectively use the 'origin' setting in jQuery UI 1.8 or newer?