ww -= 150;
wh -= 150;
+
// get new width and height
var bs = this.borderSize * 2;
var widthNew = imgWidth + bs;
var heightNew = imgHeight + bs;
- Roo.log(widthNew);
+
if (widthNew > ww || heightNew > wh) {
// bigger than window.
// scale here... - bit nasty..