Explorar el Código

Fix #917: Better default styling for zoom preview for object

Kartik Visweswaran hace 8 años
padre
commit
ddedb30398
Se han modificado 3 ficheros con 3 adiciones y 2 borrados
  1. 2 1
      CHANGE.md
  2. 1 1
      js/fileinput.js
  3. 0 0
      js/fileinput.min.js

+ 2 - 1
CHANGE.md

@@ -3,11 +3,12 @@ Change Log: `bootstrap-fileinput`
 
 ## version 4.4.0 (_under development_)
 
-**Date:** 04-Apr-2017
+**Date:** 05-Apr-2017
 
 1. (enh #910): New property `resizeIfMoreThan` to control image resize conditionally.
 2. (enh #915): Update default styling for zoom preview for object.
 3. Parse all numeric properties correctly.
+4. (enh #917): Better default styling for zoom preview for object (corrects #915).
 
 ## version 4.3.9
 

+ 1 - 1
js/fileinput.js

@@ -514,7 +514,7 @@
                     video: {width: "auto", height: "100%", 'max-width': "100%"},
                     audio: {width: "100%", height: "30px"},
                     flash: {width: "auto", height: "480px"},
-                    object: vDefaultDim,
+                    object: {width: "auto", height: "100%", 'max-width': "100%", 'min-height': "480px"},
                     pdf: vDefaultDim,
                     other: {width: "auto", height: "100%", 'min-height': "480px"}
                 },

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
js/fileinput.min.js


Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio