Ticket #3005: affects.scale_allow-option-to.patch

File affects.scale_allow-option-to.patch, 670 bytes (added by c_t, 11 years ago)

Enable option "to" for effects.scale

  • effects.scale.js

    old new  
    6868                        y: direction != 'horizontal' ? (percent / 100) : 1,
    6969                        x: direction != 'vertical' ? (percent / 100) : 1
    7070                };
    71                 el.to = {height: original.height * factor.y, width: original.width * factor.x}; // Set to state
     71                el.to = o.options.to || {height: original.height * factor.y, width: original.width * factor.x}; // Set to state
    7272                if (origin) { // Calculate baseline shifts
    7373                        var baseline = $.effects.getBaseline(origin, original);
    7474                        el.from.top = (original.height - el.from.height) * baseline.y;