Skip to content

Commit

Permalink
Fix #115: Autosize file caption responsively on window resize
Browse files Browse the repository at this point in the history
  • Loading branch information
kartik-v committed Jan 7, 2015
1 parent cd4c1cb commit 7540922
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ version 4.1.5
6. (bug #112): Fix undefined filestack for individual file upload within preview.
7. (bug #113): Icon layout template undefined when using user template.
8. (bug #114): Prevent multiple file selection when using single file configuration.
9. (enh #115): Autosize file caption responsively on window resize.

version 4.1.4
=============
Expand Down
6 changes: 3 additions & 3 deletions examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
<head>
<meta charset="UTF-8"/>
<title>Krajee JQuery Plugins - &copy; Kartik</title>
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet">
<link href="../css/fileinput.css" media="all" rel="stylesheet" type="text/css" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="../js/fileinput.js" type="text/javascript"></script>
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js" type="text/javascript"></script>
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js" type="text/javascript"></script>
</head>
<body>
<div class="container">
<div class="container kv-main">
<h1>Bootstrap File Input Example</h1>
<form enctype="multipart/form-data">
<div class="form-group">
Expand Down
2 changes: 1 addition & 1 deletion js/fileinput.js
Original file line number Diff line number Diff line change
Expand Up @@ -1464,7 +1464,7 @@
self.$caption.css('width', 0);
setTimeout(function() {
var w = self.$captionContainer.width();
self.$caption.css('width', 0.98 * w);
self.$caption.css('width', 0.98 * w + 'px');
}, 50);
},
setCaption: function(content) {
Expand Down
2 changes: 1 addition & 1 deletion js/fileinput.min.js

Large diffs are not rendered by default.

0 comments on commit 7540922

Please sign in to comment.