y = 0;
} else {
forceHeight = true;
-
- s = Math.min(2, w / nw, h / nh);
+ var ms = parseFloat(m.find('iframe').data('scale'));
+ if (isNaN(ms)) {
+ ms = 2;
+ }
+ s = Math.min(ms, w / nw, h / nh);
if (iframe.is('img') || fullscreen) {
s = Math.min(1, s);
}
});
}
- m.find('.multimediaScale').css({width: nw, height: nh, overflow: 'hidden'}).transform({
- scale: [s, s],
- origin: [0, 0]
- }).css('text-align', 'left');
m.find('.multimediaScale').css({width: nw, height: nh, overflow: 'hidden'}).transform({
scale: [s, s],
origin: [0, 0]