From efceae422514ae41517f6a375527f06e431f6581 Mon Sep 17 00:00:00 2001 From: Matchu Date: Sat, 2 Jul 2011 17:37:30 -0400 Subject: [PATCH] instead of using the largest size image that will fit the preview space, use the next largest and scale down --- app/stylesheets/outfits/_edit.sass | 4 +- public/javascripts/wardrobe.js | 54 ++++--- public/stylesheets/compiled/screen.css | 200 +++++++++++++------------ 3 files changed, 141 insertions(+), 117 deletions(-) diff --git a/app/stylesheets/outfits/_edit.sass b/app/stylesheets/outfits/_edit.sass index 80b0ce6a..ad84c6d9 100644 --- a/app/stylesheets/outfits/_edit.sass +++ b/app/stylesheets/outfits/_edit.sass @@ -169,8 +169,10 @@ body.outfits-edit display: none #preview-image-container +wardrobe-image-wrapper - margin: 1em auto position: relative + &, img + height: 100% + width: 100% #preview-swf-overlay +opacity(0) background: black diff --git a/public/javascripts/wardrobe.js b/public/javascripts/wardrobe.js index 37c9a541..2a2d6988 100644 --- a/public/javascripts/wardrobe.js +++ b/public/javascripts/wardrobe.js @@ -1249,6 +1249,8 @@ Wardrobe.getStandardView = function (options) { preview_el.removeClass('swf-adapter').addClass('image-adapter'); pendingMessageEl.appendTo(previewImageContainer); + var adapter = this; + var exportIframe = $('#preview-export-iframe'); if(exportIframe.length == 0) { exportIframe = $('