Browse Source

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

Kartik Visweswaran 8 years ago
parent
commit
ddedb30398
3 changed files with 3 additions and 2 deletions
  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_)
 ## 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.
 1. (enh #910): New property `resizeIfMoreThan` to control image resize conditionally.
 2. (enh #915): Update default styling for zoom preview for object.
 2. (enh #915): Update default styling for zoom preview for object.
 3. Parse all numeric properties correctly.
 3. Parse all numeric properties correctly.
+4. (enh #917): Better default styling for zoom preview for object (corrects #915).
 
 
 ## version 4.3.9
 ## version 4.3.9
 
 

+ 1 - 1
js/fileinput.js

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

File diff suppressed because it is too large
+ 0 - 0
js/fileinput.min.js


Some files were not shown because too many files changed in this diff