Skip to content
This repository
Browse code

fixing min-width

  • Loading branch information...
commit 5f0cbb7230496f2ed12a0bbcbb5396c985530373 1 parent 351b51e
David Hellsing authored March 30, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  src/galleria.js
2  src/galleria.js
@@ -5347,7 +5347,7 @@ Galleria.Picture.prototype = {
5347 5347
 
5348 5348
         // remove any max/min scaling
5349 5349
         $.each('minWidth minHeight maxWidth maxHeight'.split(' '), function(i, prop) {
5350  
-            $image.css(prop, 'none');
  5350
+            $image.css(prop, /min/.test(prop) ? 0 : 'none');
5351 5351
         });
5352 5352
 
5353 5353
         if ( this.cache[ src ] ) {

0 notes on commit 5f0cbb7

Please sign in to comment.
Something went wrong with that request. Please try again.