Browse Source

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

Kartik Visweswaran 8 năm trước cách đây
mục cha
commit
ddedb30398
3 tập tin đã thay đổi với 3 bổ sung2 xóa
  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"}
                 },

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
js/fileinput.min.js


Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác