\r
this.container = $(container);\r
this.container.setStyles({\r
- position: 'relative',\r
+ /* position: 'relative', */\r
overflow: 'hidden'\r
});\r
if(this.options.onClick){\r
if (vfactor < factor) { factor = vfactor; }\r
if (hfactor < factor) { factor = hfactor; }\r
factor *= .95;\r
- height = Math.round(height * factor);\r
- width = Math.round(width * factor);\r
+ if (factor < 1) {\r
+ height = Math.round(height * factor);\r
+ width = Math.round(width * factor);\r
+ }\r
var topoff = (this.height - height)/2;\r
var leftoff = (this.width - width)/2;\r
/* alert('dim: '+width+'x'+height+'+'+leftoff+'+'+topoff); */\r